MathHelper Methods |
The MathHelper type exposes the following members.
Name | Description | |
---|---|---|
Barycentric |
Returns the Cartesian coordinate for one axis of a point that is defined by a given triangle and two normalized
barycentric (areal) coordinates.
| |
CatmullRom |
Performs a Catmull-Rom interpolation using the specified positions.
| |
Clamp(Int32, Int32, Int32) |
Restricts a value to be within a specified range.
| |
Clamp(Single, Single, Single) |
Restricts a value to be within a specified range.
| |
Distance |
Calculates the absolute value of the difference of two values.
| |
Hermite |
Performs a Hermite spline interpolation.
| |
IsPowerOfTwo |
Determines if value is powered by two.
| |
Lerp |
Linearly interpolates between two values.
| |
Max(Int32, Int32) |
Returns the greater of two values.
| |
Max(Single, Single) |
Returns the greater of two values.
| |
Min(Int32, Int32) |
Returns the lesser of two values.
| |
Min(Single, Single) |
Returns the lesser of two values.
| |
SmoothStep |
Interpolates between two values using a cubic equation.
| |
ToDegrees |
Converts radians to degrees.
| |
ToRadians |
Converts degrees to radians.
| |
WrapAngle |
Reduces a given angle to a value between π and -π.
|