Click or drag to resize

MathHelper Methods

The MathHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAngleBetween
Returns the angle between two vectors.
Public methodStatic memberClamp(Int32, Int32, Int32)

Limits a number between two other numbers.

Respects from being larger than to.

Public methodStatic memberClamp(Single, Single, Single)
Limits a number between two other numbers.
Public methodStatic memberClampAngle(Single)
Loop an angle around within a -360° to +360° range.
Public methodStatic memberClampAngle(Single, Single, Single)

Loop an angle around within a -360° to +360° range and limit it between two values.

Respects from being larger than to.

Public methodStatic memberClampDeltaAngle
Loop an angle around within a -180° to +180° range.
Public methodStatic memberGetPositionAtDistance
Returns the point at a certain distance from a another point.
Public methodStatic memberIsInRange(Int32, Int32, Int32)

Returns whether a number is between two other numbers.

Respects from being larger than to.

Public methodStatic memberIsInRange(Single, Single, Single)

Returns whether a number is between two other numbers.

Respects from being larger than to.

Public methodStatic memberIsInRange(Vector2, Vector2, Vector2)
Returns whether a vector is within a range of two other vectors.
Public methodStatic memberIsInRange(Vector3, Vector3, Vector3)
Returns whether a vector is within a range of two other vectors.
Public methodStatic memberMap
Returns what a value would map down to if its minimum and maximum values are changed.
Public methodStatic memberRotate
Rotates a point at a given angle.
Public methodStatic memberRotateAround(Vector3, Vector3, Quaternion)
Returns the point when a vector is rotated around another one.
Public methodStatic memberRotateAround(Vector3, Vector3, Vector3)
Returns the point when a vector is rotated around another one.
Top
See Also