Mac Guides | Samples

MonoMac.OpenGL.MathHelper Class

Contains common mathematical functions and constants.

See Also: MathHelper

Syntax

public static class MathHelper

Requirements

Namespace: MonoMac.OpenGL
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.OpenGL.MathHelper are listed below.

See Also: Object

Public Fields

const
ESingle (2.718282). Defines the value of E as a Single.
const
Log10ESingle (0.4342945). Defines the base-10 logarithm of E.
const
Log2ESingle (1.442695). Defines the base-2 logarithm of E.
const
PiSingle (3.141593). Defines the value of Pi as a Single.
const
PiOver2Single (1.570796). Defines the value of Pi divided by two as a Single.
const
PiOver3Single (1.047198). Defines the value of Pi divided by three as a Single.
const
PiOver4Single (0.7853982). Definesthe value of Pi divided by four as a Single.
const
PiOver6Single (0.5235988). Defines the value of Pi divided by six as a Single.
const
ThreePiOver2Single (4.712389). Defines the value of Pi multiplied by 3 and divided by two as a Single.
const
TwoPiSingle (6.283185). Defines the value of Pi multiplied by two as a Single.

Public Methods

static
BinomialCoefficient(Int32, Int32) : Int64
Calculates the binomial coefficient n above k.
static
DegreesToRadians(Double) : Double
Convert degrees to radians
static
DegreesToRadians(Single) : Single
Convert degrees to radians
static
Factorial(Int32) : Int64
Calculates the factorial of a given natural number.
static
InverseSqrtFast(Double) : Double
Returns an approximation of the inverse square root of left number.
static
InverseSqrtFast(Single) : Single
Returns an approximation of the inverse square root of left number.
static
NextPowerOfTwo(Double) : Double
Returns the next power of two that is larger than the specified number.
static
NextPowerOfTwo(Int32) : Int32
Returns the next power of two that is larger than the specified number.
static
NextPowerOfTwo(Int64) : Int64
Returns the next power of two that is larger than the specified number.
static
NextPowerOfTwo(Single) : Single
Returns the next power of two that is larger than the specified number.
static
RadiansToDegrees(Double) : Double
Convert radians to degrees
static
RadiansToDegrees(Single) : Single
Convert radians to degrees
static
Swap(ref Double, ref Double)
Swaps two double values.
static
Swap(ref Single, ref Single)
Swaps two float values.