C# Class idTech4.Math.idMath

显示文件 Open project: iainmckay/idtech4.net

Public Methods

Method Description
Abs ( float a ) : float
Atan2 ( float x, float y ) : float
Ceiling ( float c ) : float
Cos ( float c ) : float
Cube ( float x ) : float
Floor ( float v ) : float
InvSqrt ( float x ) : float
Max ( float a, float b ) : float
Min ( float a, float b ) : float
Pow ( float a, float b ) : float
ShortToAngle ( short x ) : float
Sin ( float s ) : float
SinCos ( float a, float &s, float &c ) : void
Sqrt ( float v ) : float
Square ( float x ) : float
Tan ( float x ) : float
ToRadians ( float v ) : float
VectorHash ( Vector3 v ) : int

Method Details

Abs() public static method

public static Abs ( float a ) : float
a float
return float

Atan2() public static method

public static Atan2 ( float x, float y ) : float
x float
y float
return float

Ceiling() public static method

public static Ceiling ( float c ) : float
c float
return float

Cos() public static method

public static Cos ( float c ) : float
c float
return float

Cube() public static method

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

Floor() public static method

public static Floor ( float v ) : float
v float
return float

InvSqrt() public static method

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

Max() public static method

public static Max ( float a, float b ) : float
a float
b float
return float

Min() public static method

public static Min ( float a, float b ) : float
a float
b float
return float

Pow() public static method

public static Pow ( float a, float b ) : float
a float
b float
return float

ShortToAngle() public static method

public static ShortToAngle ( short x ) : float
x short
return float

Sin() public static method

public static Sin ( float s ) : float
s float
return float

SinCos() public static method

public static SinCos ( float a, float &s, float &c ) : void
a float
s float
c float
return void

Sqrt() public static method

public static Sqrt ( float v ) : float
v float
return float

Square() public static method

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

Tan() public static method

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

ToRadians() public static method

public static ToRadians ( float v ) : float
v float
return float

VectorHash() public static method

public static VectorHash ( Vector3 v ) : int
v Vector3
return int