Class NumericHelper
Adds some required numeric translations
Inheritance
NumericHelper
Assembly: SlipeShared.dll
Syntax
public class NumericHelper
Methods
|
Improve this Doc
View Source
EulerToQuaternion(Vector3)
Translate an MTA Euler Rotation to a Quaternion
Declaration
public static Quaternion EulerToQuaternion(Vector3 rotation)
Parameters
Type |
Name |
Description |
Vector3 |
rotation |
|
Returns
|
Improve this Doc
View Source
QuaternionToEuler(Quaternion)
Translate a Quaternion to an MTA Euler Rotation
Declaration
public static Vector3 QuaternionToEuler(Quaternion q)
Parameters
Returns
|
Improve this Doc
View Source
RotationBetweenPositions(Vector3, Vector3)
Get a vector that describes the rotation between two vectors
Declaration
public static Vector3 RotationBetweenPositions(Vector3 position1, Vector3 position2)
Parameters
Returns
Type |
Description |
Vector3 |
A rotation vector
|
|
Improve this Doc
View Source
ToDegrees(Single)
Convert radians to degrees
Declaration
public static float ToDegrees(float x)
Parameters
Type |
Name |
Description |
Single |
x |
|
Returns
|
Improve this Doc
View Source
ToRadians(Single)
Convert degrees to radians
Declaration
public static float ToRadians(float x)
Parameters
Type |
Name |
Description |
Single |
x |
|
Returns