Class MathConstants
- Namespace
- NominalSystems.Maths
- Assembly
- NominalSystems.Maths.dll
Class storing a series of constants and mathematical functions for basic maths and units.
public static class MathConstants
- Inheritance
-
MathConstants
Fields
DEG2RAD
The Degrees to Radians conversion
public static double DEG2RAD
Field Value
RAD2DEG
The Radians to Degrees conversion
public static double RAD2DEG
Field Value
RPM
The Revolutions Per Minute to rad/s conversion
public static double RPM
Field Value
Methods
Deg2MRP(double)
Returns the MRP of a Degree
public static double Deg2MRP(double degrees)
Parameters
degrees
doubleA degree
Returns
- double
An MRP
MRP2Deg(double)
Returns the Degrees of an MRP
public static double MRP2Deg(double mrp)
Parameters
mrp
doubleAn MRP value
Returns
- double
A degrees
MRP2Rad(double)
Returns the Radians of an MRP
public static double MRP2Rad(double mrp)
Parameters
mrp
doubleAn MRP value
Returns
- double
A radians
MRP2Vec(Vector3)
Converts an MRP vector into an radians vector
public static Vector3 MRP2Vec(Vector3 vector)
Parameters
vector
Vector3An MRP vector
Returns
- Vector3
A radians Vector
Rad2MRP(double)
Returns the MRP of a Radian
public static double Rad2MRP(double radians)
Parameters
radians
doubleA radian
Returns
- double
An MRP
Vec2MRP(Vector3)
Converts a radians vector into an MRP vector
public static Vector3 Vec2MRP(Vector3 vector)
Parameters
vector
Vector3A radians vector
Returns
- Vector3
An MRP Vector