C# Class Kalcium.Mathematics

Mostra file Open project: skanaar/Kalcium

Public Methods

Method Description
ConstrainBetween ( this value, double min, double max ) : double
ConstrainBetween ( this value, float min, float max ) : float
ConstrainBetween ( this value, int min, int max ) : int
FromRadiansToDegrees ( this x ) : double
IsEven ( this value ) : bool
IsOdd ( this value ) : bool
IsWithinRange ( this x, double min, double max ) : bool
Sq ( this x ) : double
Sq ( this x ) : int

Method Details

ConstrainBetween() public static method

public static ConstrainBetween ( this value, double min, double max ) : double
value this
min double
max double
return double

ConstrainBetween() public static method

public static ConstrainBetween ( this value, float min, float max ) : float
value this
min float
max float
return float

ConstrainBetween() public static method

public static ConstrainBetween ( this value, int min, int max ) : int
value this
min int
max int
return int

FromRadiansToDegrees() public static method

public static FromRadiansToDegrees ( this x ) : double
x this
return double

IsEven() public static method

public static IsEven ( this value ) : bool
value this
return bool

IsOdd() public static method

public static IsOdd ( this value ) : bool
value this
return bool

IsWithinRange() public static method

public static IsWithinRange ( this x, double min, double max ) : bool
x this
min double
max double
return bool

Sq() public static method

public static Sq ( this x ) : double
x this
return double

Sq() public static method

public static Sq ( this x ) : int
x this
return int