Functions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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) |