MathHelperClampAngle Method (Single, Single, Single) |
Loop an angle around within a -360° to +360° range and limit it between two values.
Respects from being larger than to.
Namespace: Kit
public static float ClampAngle( float angle, float from, float to )