MathExtensions.FixAngle
Declaration#
public static float FixAngle(float angle)Parameters#
| Name | Description |
|---|---|
| angle | Value to convert |
Description#
Reduce any angle to range of -360 to 360
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod() { float angle = 720; float result = angle.FixAngle(); }
}