 | AnglesCurveAngle Method |
Interpolates an angle from a start value to an end value.
Namespace: Slash.Math.UtilsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static float CurveAngle(
float from,
float to,
float step
)
Public Shared Function CurveAngle (
from As Single,
to As Single,
step As Single
) As Single
public:
static float CurveAngle(
float from,
float to,
float step
)
static member CurveAngle :
from : float32 *
to : float32 *
step : float32 -> float32
Parameters
- from
- Type: SystemSingle
Start angle (in radians). - to
- Type: SystemSingle
End angle (in radians). - step
- Type: SystemSingle
Step value (0...1).
Return Value
Type:
Single Returns the start angle if step value is smaller or equal to zero, the end angle if step value is bigger or equal to 1 and an interpolated angle (in radians) if the step value is between 0 and 1.
See Also