Property | Type | Description | |
---|---|---|---|
ZPlane | Plane |
Method | Description | |
---|---|---|
AbsoluteToScreen ( float x, float y, float z, int &screenX, int &screenY, Camera camera, System form ) : void | ||
AngleToAngle ( double angle1, double angle2 ) : double | ||
AngleToAngle ( float angle1, float angle2 ) : float |
Determines the shortest absolute difference between two angles. This method will never return a value with absolute value greater than PI. It will return either a positive or negative value, keeping all values between positive and negative PI. |
|
AngleToVector ( float radians ) : System.Vector3 | ||
AreDoublesEqual ( double num1, double num2, double epsilon ) : bool | ||
AreFloatsEqual ( float num1, float num2, float epsilon ) : bool | ||
GetAspectRatioForSameSizeAtResolution ( float resolution ) : float | ||
GetPointOnUnitSphere ( |
Returns a random point on the surface of a unit sphere.
|
|
Hypotenuse ( double X, double Y ) : double | ||
Hypotenuse ( float X, float Y ) : float | ||
HypotenuseSquared ( float X, float Y ) : float | ||
IsOrthonormal ( System.Matrix &matrix ) : bool | ||
IsPowerOfTwo ( int numberToCheck ) : bool | ||
LerpRotationMatrix ( System.Matrix currentRotationMatrix, System.Matrix destinationRotationMatrix, float amount ) : System.Matrix | ||
Loop ( double value, double loopPeriod ) : double | ||
Loop ( double value, double loopPeriod, bool &didLoop ) : double | ||
Loop ( float value, float loopPeriod ) : float | ||
Loop ( float value, float loopPeriod, bool &didLoop ) : float | ||
MoveTowardAngle ( float currentAngle, float destinationAngle, float amount ) : float | ||
NextPowerOfTwo ( int startingValue ) : int | ||
NormalizeAngle ( float angle ) : float |
Wraps an angle from 0 to TwoPi
|
|
RegulateAngle ( double angleToRegulate ) : double | ||
RegulateAngle ( float angleToRegulate ) : float | ||
RegulateAngle ( float &angleToRegulate ) : void |
Keeps an angle between 0 and 2*PI.
|
|
RotatePointAroundPoint ( float xBase, float yBase, float &xToRotate, float &yToRotate, float radiansToChangeBy ) : void |
Rotates a point around another point by a given number of radians.
|
|
RoundDouble ( double valueToRound, double multipleOf ) : double | ||
RoundFloat ( float valueToRound, float multipleOf ) : float | ||
RoundFloat ( float valueToRound, float multipleOf, float seed ) : float | ||
RoundToInt ( double doubleToRound ) : int | ||
RoundToInt ( float floatToRound ) : int | ||
RoundToLong ( double doubleToRound ) : long | ||
ScreenToAbsolute ( int screenX, int screenY, float &x, float &y, float z, Camera camera, System form, bool fullscreen ) : void | ||
SortAscending ( List |
public static AbsoluteToScreen ( float x, float y, float z, int &screenX, int &screenY, Camera camera, System form ) : void | ||
x | float | |
y | float | |
z | float | |
screenX | int | |
screenY | int | |
camera | Camera | |
form | System | |
return | void |
public static AngleToAngle ( double angle1, double angle2 ) : double | ||
angle1 | double | |
angle2 | double | |
return | double |
public static AngleToAngle ( float angle1, float angle2 ) : float | ||
angle1 | float | Starting angle in radians. |
angle2 | float | Ending angle in radians. |
return | float |
public static AngleToVector ( float radians ) : System.Vector3 | ||
radians | float | |
return | System.Vector3 |
public static AreDoublesEqual ( double num1, double num2, double epsilon ) : bool | ||
num1 | double | |
num2 | double | |
epsilon | double | |
return | bool |
public static AreFloatsEqual ( float num1, float num2, float epsilon ) : bool | ||
num1 | float | |
num2 | float | |
epsilon | float | |
return | bool |
public static GetAspectRatioForSameSizeAtResolution ( float resolution ) : float | ||
resolution | float | |
return | float |
public static GetPointOnUnitSphere ( |
||
random | Reference to a Random instance. | |
xPos | float | The resulting X value. |
yPos | float | The resulting Y value. |
zPos | float | The resulting Z value. |
return | void |
public static Hypotenuse ( double X, double Y ) : double | ||
X | double | |
Y | double | |
return | double |
public static Hypotenuse ( float X, float Y ) : float | ||
X | float | |
Y | float | |
return | float |
public static HypotenuseSquared ( float X, float Y ) : float | ||
X | float | |
Y | float | |
return | float |
public static IsOrthonormal ( System.Matrix &matrix ) : bool | ||
matrix | System.Matrix | |
return | bool |
public static IsPowerOfTwo ( int numberToCheck ) : bool | ||
numberToCheck | int | |
return | bool |
public static LerpRotationMatrix ( System.Matrix currentRotationMatrix, System.Matrix destinationRotationMatrix, float amount ) : System.Matrix | ||
currentRotationMatrix | System.Matrix | |
destinationRotationMatrix | System.Matrix | |
amount | float | |
return | System.Matrix |
public static Loop ( double value, double loopPeriod ) : double | ||
value | double | |
loopPeriod | double | |
return | double |
public static Loop ( double value, double loopPeriod, bool &didLoop ) : double | ||
value | double | |
loopPeriod | double | |
didLoop | bool | |
return | double |
public static Loop ( float value, float loopPeriod ) : float | ||
value | float | |
loopPeriod | float | |
return | float |
public static Loop ( float value, float loopPeriod, bool &didLoop ) : float | ||
value | float | |
loopPeriod | float | |
didLoop | bool | |
return | float |
public static MoveTowardAngle ( float currentAngle, float destinationAngle, float amount ) : float | ||
currentAngle | float | |
destinationAngle | float | |
amount | float | |
return | float |
public static NextPowerOfTwo ( int startingValue ) : int | ||
startingValue | int | |
return | int |
public static NormalizeAngle ( float angle ) : float | ||
angle | float | The angle to wrap |
return | float |
public static RegulateAngle ( double angleToRegulate ) : double | ||
angleToRegulate | double | |
return | double |
public static RegulateAngle ( float angleToRegulate ) : float | ||
angleToRegulate | float | |
return | float |
public static RegulateAngle ( float &angleToRegulate ) : void | ||
angleToRegulate | float | The angle to regulate. |
return | void |
public static RotatePointAroundPoint ( float xBase, float yBase, float &xToRotate, float &yToRotate, float radiansToChangeBy ) : void | ||
xBase | float | X position to rotate around. |
yBase | float | Y position to rotate around. |
xToRotate | float | X position to rotate (changes). |
yToRotate | float | Y position to rotate (changes). |
radiansToChangeBy | float | Radians to rotate by. |
return | void |
public static RoundDouble ( double valueToRound, double multipleOf ) : double | ||
valueToRound | double | |
multipleOf | double | |
return | double |
public static RoundFloat ( float valueToRound, float multipleOf ) : float | ||
valueToRound | float | |
multipleOf | float | |
return | float |
public static RoundFloat ( float valueToRound, float multipleOf, float seed ) : float | ||
valueToRound | float | |
multipleOf | float | |
seed | float | |
return | float |
public static RoundToInt ( double doubleToRound ) : int | ||
doubleToRound | double | |
return | int |
public static RoundToInt ( float floatToRound ) : int | ||
floatToRound | float | |
return | int |
public static RoundToLong ( double doubleToRound ) : long | ||
doubleToRound | double | |
return | long |
public static ScreenToAbsolute ( int screenX, int screenY, float &x, float &y, float z, Camera camera, System form, bool fullscreen ) : void | ||
screenX | int | |
screenY | int | |
x | float | |
y | float | |
z | float | |
camera | Camera | |
form | System | |
fullscreen | bool | |
return | void |
public static SortAscending ( List |
||
integerList | List |
|
return | void |