Class BezierInterpolation
java.lang.Object
kr.toxicity.model.api.util.interpolation.BezierInterpolation
- All Implemented Interfaces:
VectorInterpolation
Bezier interpolator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull org.joml.Vector3finterpolate(@NotNull List<VectorPoint> points, int p2Index, float time) Interpolates vector
-
Constructor Details
-
BezierInterpolation
public BezierInterpolation()
-
-
Method Details
-
interpolate
@NotNull public @NotNull org.joml.Vector3f interpolate(@NotNull @NotNull List<VectorPoint> points, int p2Index, float time) Description copied from interface:VectorInterpolationInterpolates vector- Specified by:
interpolatein interfaceVectorInterpolation- Parameters:
points- pointsp2Index- p2 indextime- destination time- Returns:
- interpolated vector
-