C# Class OpenTK.Functions

Afficher le fichier Open project: prepare/HTML-Renderer

Méthodes publiques

Свойство Type Description
DTOR double
DTORF float
PI double
PIF float
RTOD double
RTODF float

Méthodes publiques

Méthode Description
BinomialCoefficient ( int n, int k ) : long

Calculates the binomial coefficient n above k.

DegreesToRadians ( float degrees ) : float

Convert degrees to radians

Factorial ( int n ) : long

Calculates the factorial of a given natural number.

InverseSqrtFast ( double x ) : double

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

This is an improved implementation of the the method known as Carmack's inverse square root which is found in the Quake III source code. This implementation comes from http://www.codemaestro.com/reviews/review00000105.html. For the history of this method, see http://www.beyond3d.com/content/articles/8/

InverseSqrtFast ( float x ) : float

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

This is an improved implementation of the the method known as Carmack's inverse square root which is found in the Quake III source code. This implementation comes from http://www.codemaestro.com/reviews/review00000105.html. For the history of this method, see http://www.beyond3d.com/content/articles/8/

NextPowerOfTwo ( double n ) : double

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

NextPowerOfTwo ( float n ) : float

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

NextPowerOfTwo ( int n ) : int

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

NextPowerOfTwo ( long n ) : long

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

RadiansToDegrees ( float radians ) : float

Convert radians to degrees

Swap ( double &a, double &b ) : void

Swaps two float values.

Swap ( float &a, float &b ) : void

Swaps two float values.

Method Details

BinomialCoefficient() public static méthode

Calculates the binomial coefficient n above k.
public static BinomialCoefficient ( int n, int k ) : long
n int The n.
k int The k.
Résultat long

DegreesToRadians() public static méthode

Convert degrees to radians
public static DegreesToRadians ( float degrees ) : float
degrees float An angle in degrees
Résultat float

Factorial() public static méthode

Calculates the factorial of a given natural number.
public static Factorial ( int n ) : long
n int The number.
Résultat long

InverseSqrtFast() public static méthode

Returns an approximation of the inverse square root of left number.
This is an improved implementation of the the method known as Carmack's inverse square root which is found in the Quake III source code. This implementation comes from http://www.codemaestro.com/reviews/review00000105.html. For the history of this method, see http://www.beyond3d.com/content/articles/8/
public static InverseSqrtFast ( double x ) : double
x double A number.
Résultat double

InverseSqrtFast() public static méthode

Returns an approximation of the inverse square root of left number.
This is an improved implementation of the the method known as Carmack's inverse square root which is found in the Quake III source code. This implementation comes from http://www.codemaestro.com/reviews/review00000105.html. For the history of this method, see http://www.beyond3d.com/content/articles/8/
public static InverseSqrtFast ( float x ) : float
x float A number.
Résultat float

NextPowerOfTwo() public static méthode

Returns the next power of two that is larger than the specified number.
public static NextPowerOfTwo ( double n ) : double
n double The specified number.
Résultat double

NextPowerOfTwo() public static méthode

Returns the next power of two that is larger than the specified number.
public static NextPowerOfTwo ( float n ) : float
n float The specified number.
Résultat float

NextPowerOfTwo() public static méthode

Returns the next power of two that is larger than the specified number.
public static NextPowerOfTwo ( int n ) : int
n int The specified number.
Résultat int

NextPowerOfTwo() public static méthode

Returns the next power of two that is larger than the specified number.
public static NextPowerOfTwo ( long n ) : long
n long The specified number.
Résultat long

RadiansToDegrees() public static méthode

Convert radians to degrees
public static RadiansToDegrees ( float radians ) : float
radians float An angle in radians
Résultat float

Swap() public static méthode

Swaps two float values.
public static Swap ( double &a, double &b ) : void
a double The first value.
b double The second value.
Résultat void

Swap() public static méthode

Swaps two float values.
public static Swap ( float &a, float &b ) : void
a float The first value.
b float The second value.
Résultat void

Property Details

DTOR public_oe static_oe property

Obsolete. Do not use.
public static double DTOR
Résultat double

DTORF public_oe static_oe property

Obsolete. Do not use.
public static float DTORF
Résultat float

PI public_oe static_oe property

Obsolete. Do not use.
public static double PI
Résultat double

PIF public_oe static_oe property

Obsolete. Do not use.
public static float PIF
Résultat float

RTOD public_oe static_oe property

Obsolete. Do not use.
public static double RTOD
Résultat double

RTODF public_oe static_oe property

Obsolete. Do not use.
public static float RTODF
Résultat float