VRageMath
MathHelperD
Assembly: VRage.Math.dll
public abstract sealed class MathHelperD
Contains commonly used precalculated values.
Fields
| Member | Description |
|---|---|
| static E | Represents the mathematical constant e. |
| static FourPi | Represents the value of pi times four. |
| static Pi | Represents the value of pi. |
| static PiOver2 | Represents the value of pi divided by two. |
| static PiOver4 | Represents the value of pi divided by four. |
| static TwoPi | Represents the value of pi times two. |
Methods
| Member | Description |
|---|---|
| static Clamp(double, double, double) | Restricts a value to be within a specified range. Reference page contains links to related code samples. |
| static Distance(double, double) | Calculates the absolute value of the difference of two values. |
| static Max(double, double) | Returns the greater of two values. |
| static Min(double, double) | Returns the lesser of two values. |
| static MonotonicAcos(float) | |
| static ToDegrees(double) | Converts radians to degrees. |
| static ToRadians(double) | Converts degrees to radians. |