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(Int32, Int32, Int32)
Restricts a value to be within a specified range.
Public methodStatic memberClamp(Single, Single, Single)
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 memberIsPowerOfTwo
Determines if value is powered by two.
Public methodStatic memberLerp
Linearly interpolates between two values.
Public methodStatic memberMax(Int32, Int32)
Returns the greater of two values.
Public methodStatic memberMax(Single, Single)
Returns the greater of two values.
Public methodStatic memberMin(Int32, Int32)
Returns the lesser of two values.
Public methodStatic memberMin(Single, Single)
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 π and -π.
Top
See Also