Click or drag to resize

MathHelper Class

Contains commonly used precalculated values and mathematical operations.
Inheritance Hierarchy
SystemObject
  CFX.UtilitiesMathHelper

Namespace: CFX.Utilities
Assembly: CFX (in CFX.dll) Version: 1.7.3
Syntax
public static class MathHelper

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 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 memberLerp Linearly interpolates between two values.
Public methodStatic memberMax Returns the greater of two values.
Public methodStatic memberMin 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 pi and -pi.
Top
Fields
 NameDescription
Public fieldStatic memberE Represents the mathematical constant e(2.71828175).
Public fieldStatic memberLog10E Represents the log base ten of e(0.4342945).
Public fieldStatic memberLog2E Represents the log base two of e(1.442695).
Public fieldStatic memberPi Represents the value of pi(3.14159274).
Public fieldStatic memberPiOver2 Represents the value of pi divided by two(1.57079637).
Public fieldStatic memberPiOver4 Represents the value of pi divided by four(0.7853982).
Public fieldStatic memberTwoPi Represents the value of pi times two(6.28318548).
Top
See Also