C# Class RenderingLibrary.Math.MathFunctions

Afficher le fichier Open project: vchelaru/FlatRedBall

Méthodes publiques

Méthode 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 méthode

public static IsPowerOfTwo ( int numberToCheck ) : bool
numberToCheck int
Résultat bool

RotatePointAroundPoint() public static méthode

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.
Résultat void

RotatePointAroundPoint() public static méthode

public static RotatePointAroundPoint ( Vector3 basePoint, Vector3 &pointToRotate, float radiansToChangeBy ) : void
basePoint Vector3
pointToRotate Vector3
radiansToChangeBy float
Résultat void

RoundFloat() public static méthode

public static RoundFloat ( float valueToRound, float multipleOf ) : float
valueToRound float
multipleOf float
Résultat float

RoundToInt() public static méthode

public static RoundToInt ( double doubleToRound ) : int
doubleToRound double
Résultat int

RoundToInt() public static méthode

public static RoundToInt ( float floatToRound ) : int
floatToRound float
Résultat int