# FunctionsFunctions Class

## Definition

Warning

This API is now obsolete.

Contains mathematical functions for the OpenTK.Math toolkit.

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

## Fields

 DTOR DTOR DTORF DTORF PI PI PIF PIF RTOD RTOD RTODF RTODF

## Methods

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