Loading...
Searching...
No Matches
realvirtual.MathHelper Class Reference
Math helpers. More...
Static Public Member Functions | |
static double | Min (double val1, double val2, double val3) |
Returns the minimum of three values. | |
static double | Clamp (double value, double min, double max) |
Clamps a value between a minimum and a maximum value. | |
static double | TriangleArea (ref Vector3d p0, ref Vector3d p1, ref Vector3d p2) |
Calculates the area of a triangle. | |
Static Public Attributes | |
const float | PI |
The Pi constant. | |
const double | PId |
The Pi constant. | |
const float | Deg2Rad |
Degrees to radian constant. | |
const double | Deg2Radd |
Degrees to radian constant. | |
const float | Rad2Deg |
Radians to degrees constant. | |
const double | Rad2Degd |
Radians to degrees constant. | |
Detailed Description
Math helpers.
Member Function Documentation
◆ Clamp()
|
static |
Clamps a value between a minimum and a maximum value.
- Parameters
-
value The value to clamp. min The minimum value. max The maximum value.
- Returns
- The clamped value.
◆ Min()
|
static |
Returns the minimum of three values.
- Parameters
-
val1 The first value. val2 The second value. val3 The third value.
- Returns
- The minimum value.
◆ TriangleArea()
|
static |
Calculates the area of a triangle.
- Parameters
-
p0 The first point. p1 The second point. p2 The third point.
- Returns
- The triangle area.
Member Data Documentation
◆ Deg2Rad
|
static |
Degrees to radian constant.
◆ Deg2Radd
|
static |
Degrees to radian constant.
◆ PI
|
static |
The Pi constant.
◆ PId
|
static |
The Pi constant.
◆ Rad2Deg
|
static |
Radians to degrees constant.
◆ Rad2Degd
|
static |
Radians to degrees constant.