C# Class Spine.MathUtils

Datei anzeigen Open project: EsotericSoftware/spine-runtimes

Public Methods

Method Description
Atan2 ( float y, float x ) : float

Returns atan2 in radians, faster but less accurate than Math.Atan2. Average error of 0.00231 radians (0.1323 degrees), largest error of 0.00488 radians (0.2796 degrees).

Clamp ( float value, float min, float max ) : float
Cos ( float radians ) : float

Returns the cosine in radians from a lookup table.

CosDeg ( float degrees ) : float

Returns the cosine in radians from a lookup table.

Sin ( float radians ) : float

Returns the sine in radians from a lookup table.

SinDeg ( float degrees ) : float

Returns the sine in radians from a lookup table.

Private Methods

Method Description
MathUtils ( ) : System

Method Details

Atan2() static public method

Returns atan2 in radians, faster but less accurate than Math.Atan2. Average error of 0.00231 radians (0.1323 degrees), largest error of 0.00488 radians (0.2796 degrees).
static public Atan2 ( float y, float x ) : float
y float
x float
return float

Clamp() static public method

static public Clamp ( float value, float min, float max ) : float
value float
min float
max float
return float

Cos() static public method

Returns the cosine in radians from a lookup table.
static public Cos ( float radians ) : float
radians float
return float

CosDeg() static public method

Returns the cosine in radians from a lookup table.
static public CosDeg ( float degrees ) : float
degrees float
return float

Sin() static public method

Returns the sine in radians from a lookup table.
static public Sin ( float radians ) : float
radians float
return float

SinDeg() static public method

Returns the sine in radians from a lookup table.
static public SinDeg ( float degrees ) : float
degrees float
return float