C# Класс RenderingLibrary.Math.MathFunctions

Показать файл Открыть проект

Открытые методы

Метод Описание
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