C# Class UnityCommonLibrary.Utility.TrigUtility

显示文件 Open project: thebeardphantom/UnityCommonLibrary

Public Methods

Method Description
DirectionFromAngle ( float degrees ) : Vector3
DirectionFromAngle2D ( float degrees ) : Vector2
IsBetweenAngles ( float x, float a, float b ) : bool
NormalizeAngle ( float x ) : float
NormalizeAngle ( float x, float a, float b ) : float

Method Details

DirectionFromAngle() public static method

public static DirectionFromAngle ( float degrees ) : Vector3
degrees float
return UnityEngine.Vector3

DirectionFromAngle2D() public static method

public static DirectionFromAngle2D ( float degrees ) : Vector2
degrees float
return UnityEngine.Vector2

IsBetweenAngles() public static method

public static IsBetweenAngles ( float x, float a, float b ) : bool
x float
a float
b float
return bool

NormalizeAngle() public static method

public static NormalizeAngle ( float x ) : float
x float
return float

NormalizeAngle() public static method

public static NormalizeAngle ( float x, float a, float b ) : float
x float
a float
b float
return float