MathHelper Methods

Public Method StaticBarycentricReturns the Cartesian coordinate for one axis of a point that is defined by a given triangle and two normalized barycentric (areal) coordinates.
Public Method StaticCatmullRomPerforms a Catmull-Rom interpolation using the specified positions.
Public Method StaticClampRestricts a value to be within a specified range.
Public Method StaticDistanceCalculates the absolute value of the difference of two values.
Public Method StaticHermitePerforms a Hermite spline interpolation.
Public Method StaticLerpLinearly interpolates between two values.
Public Method StaticMaxReturns the greater of two values.
Public Method StaticMinReturns the lesser of two values.
Public Method StaticSmoothStepInterpolates between two values using a cubic equation.
Public Method StaticToDegreesConverts radians to degrees.
Public Method StaticToRadiansConverts degrees to radians.
Public Method StaticWrapAngleReduces a given angle to a value between π and -π.

Community Additions