Editar

Compartir a través de


Functions Class

Definition

Caution

Use OpenTK.MathHelper instead.

Contains mathematical functions for the OpenTK.Math toolkit.

[System.Obsolete("Use OpenTK.MathHelper instead.")]
public static class Functions
type Functions = class
Inheritance
Functions
Attributes

Fields

DTOR
DTORF
PI
PIF
RTOD
RTODF

Methods

BinomialCoefficient(Int32, Int32)

Calculates the binomial coefficient n above k.

DegreesToRadians(Single)

Convert degrees to radians

Factorial(Int32)

Calculates the factorial of a given natural number.

InverseSqrtFast(Double)

Returns an approximation of the inverse square root of left number.

InverseSqrtFast(Single)

Returns an approximation of the inverse square root of left number.

NextPowerOfTwo(Double)

Returns the next power of two that is larger than the specified number.

NextPowerOfTwo(Int32)

Returns the next power of two that is larger than the specified number.

NextPowerOfTwo(Int64)

Returns the next power of two that is larger than the specified number.

NextPowerOfTwo(Single)

Returns the next power of two that is larger than the specified number.

RadiansToDegrees(Single)

Convert radians to degrees

Swap(Double, Double)
Swap(Single, Single)

Applies to