weldx.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 – First shape
shape_b – Second shape
weight – Weighting factor in the range [0 .. 1] where 0 is shape a and 1 is shape b
- Returns
Interpolated shape
- Return type