C# Class RenderingLibrary.Math.MathFunctions

Mostra file Open project: vchelaru/FlatRedBall

Public Methods

Method Description
IsPowerOfTwo ( int numberToCheck ) : bool
RotatePointAroundPoint ( Point basePoint, Point &pointToRotate, float radiansToChangeBy ) : void

Rotates a Point around another Point by a given number of radians.

RotatePointAroundPoint ( Vector3 basePoint, Vector3 &pointToRotate, float radiansToChangeBy ) : void
RoundFloat ( float valueToRound, float multipleOf ) : float
RoundToInt ( double doubleToRound ) : int
RoundToInt ( float floatToRound ) : int

Method Details

IsPowerOfTwo() public static method

public static IsPowerOfTwo ( int numberToCheck ) : bool
numberToCheck int
return bool

RotatePointAroundPoint() public static method

Rotates a Point around another Point by a given number of radians.
public static RotatePointAroundPoint ( Point basePoint, Point &pointToRotate, float radiansToChangeBy ) : void
basePoint Point Point to rotate around.
pointToRotate Point Point to rotate (changes position).
radiansToChangeBy float Radians to rotate by.
return void

RotatePointAroundPoint() public static method

public static RotatePointAroundPoint ( Vector3 basePoint, Vector3 &pointToRotate, float radiansToChangeBy ) : void
basePoint Vector3
pointToRotate Vector3
radiansToChangeBy float
return void

RoundFloat() public static method

public static RoundFloat ( float valueToRound, float multipleOf ) : float
valueToRound float
multipleOf float
return float

RoundToInt() public static method

public static RoundToInt ( double doubleToRound ) : int
doubleToRound double
return int

RoundToInt() public static method

public static RoundToInt ( float floatToRound ) : int
floatToRound float
return int