Click or drag to resize

M Class

Provides standard mathematical functions and helpers for different types.
Inheritance Hierarchy
SystemObject
  Fusee.Math.CoreM

Namespace:  Fusee.Math.Core
Assembly:  Fusee.Math.Core (in Fusee.Math.Core.dll) Version: 0.7.0.0 (0.1.0.0)
Syntax
C#
public static class M

The M type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBinomialCoefficient
Calculates the binomial coefficient n above k.
Public methodStatic memberClamp(Double, Double, Double)
Clamp a value to the given minimum and maximum vectors.
Public methodStatic memberClamp(Single, Single, Single)
Clamp a value to the given minimum and maximum vectors.
Public methodStatic memberCos
Returns the Sin of the given value as float.
Public methodStatic memberDegreesToRadians
Convert degrees to radians
Public methodStatic memberEquals(Double, Double)
Compares two double values for equality.
Public methodStatic memberEquals(Single, Single)
Compares two float values for equality.
Public methodStatic memberFactorial
Calculates the factorial of a given natural number.
Public methodStatic memberFloat4ToABGR
Converts a float4 to an ABGR value (Int64).
Public methodStatic memberInverseSqrtFast(Double)
Returns an approximation of the inverse square root of left number.
Public methodStatic memberInverseSqrtFast(Single)
Returns an approximation of the inverse square root of left number.
Public methodStatic memberIsPowerOfTwo
Determines whether the specified value is a power of two.
Public methodStatic memberMax(Double, Double)
Calculates the maximum of a and b.
Public methodStatic memberMax(Int16, Int16)
Calculates the maximum of a and b.
Public methodStatic memberMax(Int32, Int32)
Calculates the maximum of a and b.
Public methodStatic memberMax(Single, Single)
Calculates the maximum of a and b.
Public methodStatic memberMax(UInt16, UInt16)
Calculates the maximum of a and b.
Public methodStatic memberMax(UInt32, UInt32)
Calculates the maximum of a and b.
Public methodStatic memberMin(Double, Double)
Calculates the minimum of a and b.
Public methodStatic memberMin(Int16, Int16)
Calculates the minimum of a and b.
Public methodStatic memberMin(Int32, Int32)
Calculates the minimum of a and b.
Public methodStatic memberMin(Single, Single)
Calculates the minimum of a and b.
Public methodStatic memberMin(UInt16, UInt16)
Calculates the minimum of a and b.
Public methodStatic memberMin(UInt32, UInt32)
Calculates the minimum of a and b.
Public methodStatic memberMinAngle(Double)
Wrap-around to keep angle in the interval of (-PI , +PI]
Public methodStatic memberMinAngle(Single)
Wrap-around to keep angle in the interval of (-PI , +PI]
Public methodStatic memberNextPowerOfTwo(Double)
Returns the next power of two that is larger than the specified number.
Public methodStatic memberNextPowerOfTwo(Int32)
Returns the next power of two that is larger than the specified number.
Public methodStatic memberNextPowerOfTwo(Int64)
Returns the next power of two that is larger than the specified number.
Public methodStatic memberNextPowerOfTwo(Single)
Returns the next power of two that is larger than the specified number.
Public methodStatic memberRadiansToDegrees
Convert radians to degrees
Public methodStatic memberSin
Returns the Sin of the given value as float.
Public methodStatic memberSineStep
Smoothes out the interpolation t when approaching 0.0 and 1.0, using the sinestep function.
Public methodStatic memberSmootherStep
Smoothes out the interpolation t when approaching 0.0 and 1.0, using the smootherstep function.
Public methodStatic memberSmoothStep
Smoothes out the interpolation t when approaching 0.0 and 1.0, using the smoothstep function.
Public methodStatic memberSwap(Double, Double)
Swaps two double values.
Public methodStatic memberSwap(Single, Single)
Swaps two float values.
Top
Fields
  NameDescription
Public fieldStatic memberE
Defines the value of E as a Single.
Public fieldStatic memberEpsilonDouble
Defines the value which represents the machine epsilon for Double in C#.
Public fieldStatic memberEpsilonFloat
Defines the value which represents the machine epsilon for Single in C#.
Public fieldStatic memberLog10E
Defines the base-10 logarithm of E.
Public fieldStatic memberLog2E
Defines the base-2 logarithm of E.
Public fieldStatic memberPi
Defines the value of Pi as a Single.
Public fieldStatic memberPiOver2
Defines the value of Pi divided by two as a Single.
Public fieldStatic memberPiOver3
Defines the value of Pi divided by three as a Single.
Public fieldStatic memberPiOver4
Defines the value of Pi divided by four as a Single.
Public fieldStatic memberPiOver6
Defines the value of Pi divided by six as a Single.
Public fieldStatic memberThreePiOver2
Defines the value of Pi multiplied by 3 and divided by two as a Single.
Public fieldStatic memberTwoPi
Defines the value of Pi multiplied by two as a Single.
Top
See Also