Click or drag to resize

MathHelper Methods

The MathHelper type exposes the following members.

Methods
 NameDescription
Public methodStatic memberBarycentric Returns the Cartesian coordinate for one axis of a point that is defined by a given triangle and two normalized barycentric (areal) coordinates.
Public methodStatic memberCatmullRom Performs a Catmull-Rom interpolation using the specified positions.
Public methodStatic memberClamp Restricts a value to be within a specified range.
Public methodStatic memberDistance Calculates the absolute value of the difference of two values.
Public methodStatic memberHermite Performs a Hermite spline interpolation.
Public methodStatic memberLerp Linearly interpolates between two values.
Public methodStatic memberMax Returns the greater of two values.
Public methodStatic memberMin Returns the lesser of two values.
Public methodStatic memberSmoothStep Interpolates between two values using a cubic equation.
Public methodStatic memberToDegrees Converts radians to degrees.
Public methodStatic memberToRadians Converts degrees to radians.
Public methodStatic memberWrapAngle Reduces a given angle to a value between pi and -pi.
Top
See Also