v3d.math.interp_points#

visu3d.math.interp_points(points: etils.enp.array_types.typing.FloatArray, *, t: int | etils.enp.array_types.typing.FloatArray, axis: int = -1, **splprep_kwargs) etils.enp.array_types.typing.FloatArray[source]#

Spline interpolation between x-d Points.

Parameters:
  • points – Key points of shape (num_point, num_dims)

  • t – Either number of steps (in which case steps are linearly interpolated), or an array of [0, 1] values corresponding to the)

  • axis – Axis

  • **splprep_kwargs – Kwargs forwarded to scipy.interpolate.splprep

Returns:

The interpolated points of shape (t, num_dims)