C# Class hds.Maths

Mostra file Open project: hdneo/mxo-hd Class Usage Examples

Public Methods

Method Description
IsInCircle ( float src_x, float src_z, float otherpoint_x, float otherpoint_z, float radius ) : bool
Maths ( ) : System
RadnomPointInCircle ( float xCurrent, float zCurrent, float radius ) : LtVector3f
RandomBetween ( float min, float max ) : float
RandomPointInCircleV2 ( float xCurrent, float zCurrent, float radius ) : LtVector3f
RandomPointOnCircle ( float xCurrent, float yCurrent, float zCurrent, float radius ) : LtVector3f
currentpos ( float init, float destination, int millisecsPassed ) : float
diceRollOperant ( ) : int
distance2Coords ( float x1, float x2, float z1, float z2 ) : float
getByteForDegrees ( int degrees ) : byte
getOppositeDegrees ( int actual ) : int

Method Details

IsInCircle() public method

public IsInCircle ( float src_x, float src_z, float otherpoint_x, float otherpoint_z, float radius ) : bool
src_x float
src_z float
otherpoint_x float
otherpoint_z float
radius float
return bool

Maths() public method

public Maths ( ) : System
return System

RadnomPointInCircle() public method

public RadnomPointInCircle ( float xCurrent, float zCurrent, float radius ) : LtVector3f
xCurrent float
zCurrent float
radius float
return LtVector3f

RandomBetween() public method

public RandomBetween ( float min, float max ) : float
min float
max float
return float

RandomPointInCircleV2() public method

public RandomPointInCircleV2 ( float xCurrent, float zCurrent, float radius ) : LtVector3f
xCurrent float
zCurrent float
radius float
return LtVector3f

RandomPointOnCircle() public method

public RandomPointOnCircle ( float xCurrent, float yCurrent, float zCurrent, float radius ) : LtVector3f
xCurrent float
yCurrent float
zCurrent float
radius float
return LtVector3f

currentpos() public method

public currentpos ( float init, float destination, int millisecsPassed ) : float
init float
destination float
millisecsPassed int
return float

diceRollOperant() public method

public diceRollOperant ( ) : int
return int

distance2Coords() public method

public distance2Coords ( float x1, float x2, float z1, float z2 ) : float
x1 float
x2 float
z1 float
z2 float
return float

getByteForDegrees() public method

public getByteForDegrees ( int degrees ) : byte
degrees int
return byte

getOppositeDegrees() public method

public getOppositeDegrees ( int actual ) : int
actual int
return int