Bagikan melalui


MathHelper Methods

Public Methods

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

See Also

Reference

MathHelper Class
Microsoft.Xna.Framework Namespace