Click or drag to resize
AnglesCurveAngle Method
Interpolates an angle from a start value to an end value.

Namespace: Slash.Math.Utils
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static float CurveAngle(
	float from,
	float to,
	float step
)

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