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