weldx.geometry.Shape.linear_interpolation#

classmethod Shape.linear_interpolation(shape_a, shape_b, weight)#

Interpolate 2 shapes linearly.

Each segment is interpolated individually, using the corresponding linear segment interpolation.

Parameters:
  • shape_a (Shape) – First shape

  • shape_b (Shape) – Second shape

  • weight (float) – Weighting factor in the range [0 .. 1] where 0 is shape a and 1 is shape b

Returns:

Interpolated shape

Return type:

Shape