C# 클래스 RenderingLibrary.Math.MathFunctions

파일 보기 프로젝트 열기: vchelaru/FlatRedBall

공개 메소드들

메소드 설명
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

메소드 상세

IsPowerOfTwo() 공개 정적인 메소드

public static IsPowerOfTwo ( int numberToCheck ) : bool
numberToCheck int
리턴 bool

RotatePointAroundPoint() 공개 정적인 메소드

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.
리턴 void

RotatePointAroundPoint() 공개 정적인 메소드

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

RoundFloat() 공개 정적인 메소드

public static RoundFloat ( float valueToRound, float multipleOf ) : float
valueToRound float
multipleOf float
리턴 float

RoundToInt() 공개 정적인 메소드

public static RoundToInt ( double doubleToRound ) : int
doubleToRound double
리턴 int

RoundToInt() 공개 정적인 메소드

public static RoundToInt ( float floatToRound ) : int
floatToRound float
리턴 int