C# Class RekdEngine.UtilMath.MathExt

Show file Open project: Naronco/Rekd-Sharp

Public Properties

Property Type Description
Epsilon float

Public Methods

Method Description
ApproxInvSqrt ( float x ) : float

This is slower

CalcBinomialCoefficient ( int n, int k ) : float
Factorial ( int r ) : int
Max ( Vector2f a, Vector2f b ) : Vector2f
Min ( Vector2f a, Vector2f b ) : Vector2f
ToDegrees ( float rad ) : float
ToRadians ( float deg ) : float

Method Details

ApproxInvSqrt() public static method

This is slower
public static ApproxInvSqrt ( float x ) : float
x float Value
return float

CalcBinomialCoefficient() public static method

public static CalcBinomialCoefficient ( int n, int k ) : float
n int
k int
return float

Factorial() public static method

public static Factorial ( int r ) : int
r int
return int

Max() public static method

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

Min() public static method

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

ToDegrees() public static method

public static ToDegrees ( float rad ) : float
rad float
return float

ToRadians() public static method

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

Property Details

Epsilon public static property

public static float Epsilon
return float