Elements.pyECSS.math_utilities.lerp

Elements.pyECSS.math_utilities.lerp(point_a, point_b, fraction)[source]

standard linear interpolation between two vectors and a fraction value

Parameters
  • point_a (numpy array) – first point

  • point_b (numpy array) – second point

  • fraction (float from 0.0 to 1.0) – value t

Returns

linearly interpolated value

Return type

numpy array