Class InterpolationUtils
- Namespace
- Coherence.Interpolation
- Assembly
- Coherence.Interpolation.dll
public static class InterpolationUtils
- Inheritance
-
InterpolationUtils
Methods
ClampFloat(float)
public static float ClampFloat(float value)
Parameters
value float
Returns
- float
PoorMansLerpDouble(double, double, ref double, float, double, float)
public static double PoorMansLerpDouble(double current, double target, ref double velocity, float smoothTime, double maxSpeed, float deltaTime)
Parameters
current double
target double
velocity double
smoothTime float
maxSpeed double
deltaTime float
Returns
- double
SmoothDampDouble(double, double, ref double, float, double, float)
public static double SmoothDampDouble(double current, double target, ref double velocity, float smoothTime, double maxSpeed, float deltaTime)
Parameters
current double
target double
velocity double
smoothTime float
maxSpeed double
deltaTime float
Returns
- double
SmoothDampQuaternion(Quaternion, Quaternion, ref Vector3, float, float, float)
public static Quaternion SmoothDampQuaternion(Quaternion current, Quaternion target, ref Vector3 currentVelocity, float smoothTime, float maxSpeed, float deltaTime)
Parameters
current Quaternion
target Quaternion
currentVelocity Vector3
smoothTime float
maxSpeed float
deltaTime float
Returns
- Quaternion
SmoothMixDouble(double, double, ref double, float, double, float)
public static double SmoothMixDouble(double current, double target, ref double velocity, float smoothTime, double maxSpeed, float deltaTime)
Parameters
current double
target double
velocity double
smoothTime float
maxSpeed double
deltaTime float
Returns
- double