共用方式為


MathHelper Members

The following tables list the members exposed by the MathHelper type.

Public Fields

Name Description
Public Field E Represents the mathematical constant e.
Public Field Log10E Represents the log base ten of e.
Public Field Log2E Represents the log base two of e.
Public Field Pi Represents the value of pi.
Public Field PiOver2 Represents the value of pi divided by two.
Public Field PiOver4 Represents the value of pi divided by four.
Public Field TwoPi Represents the value of pi times two.

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 Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
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 ReferenceEquals (Inherited from Object.)
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 ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

MathHelper Class
Microsoft.Xna.Framework Namespace