Mathf.DeltaAnglestatic function DeltaAngle (current : float, target : float) : floatDescriptionCalculates the shortest difference between two given angles.
JavaScripts
using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { Debug.Log(Mathf.DeltaAngle(1080, 90)); } } import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): Debug.Log(Mathf.DeltaAngle(1080, 90)) |
