News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

Global Constants

Global Constants


Detailed Description

Handy constants!


Defines

#define __EQUAL_CONST_F   F32(0.000001)
 Constant float epsilon used for F32 comparisons.


Variables

const F32 TNL::FloatOne = F32(1.0)
 Constant float 1.0.

const F32 TNL::FloatHalf = F32(0.5)
 Constant float 0.5.

const F32 TNL::FloatZero = F32(0.0)
 Constant float 0.0.

const F32 TNL::FloatPi = F32(3.14159265358979323846)
 Constant float PI.

const F32 TNL::Float2Pi = F32(2.0 * 3.14159265358979323846)
 Constant float 2*PI.

const F32 TNL::FloatInversePi = F32(1.0 / 3.14159265358979323846)
 Constant float 1 / PI.

const F32 TNL::FloatHalfPi = F32(0.5 * 3.14159265358979323846)
 Constant float 1/2 * PI.

const F32 TNL::Float2InversePi = F32(2.0 / 3.14159265358979323846)
 Constant float 2 / PI.

const F32 TNL::FloatInverse2Pi = F32(0.5 / 3.14159265358979323846)
 Constant float 2 / PI.

const F32 TNL::FloatSqrt2 = F32(1.41421356237309504880f)
 Constant float sqrt(2).

const F32 TNL::FloatSqrtHalf = F32(0.7071067811865475244008443f)
 Constant float sqrt(0.5).

const S8 TNL::S8_MIN = S8(-128)
 Constant Min Limit S8.

const S8 TNL::S8_MAX = S8(127)
 Constant Max Limit S8.

const U8 TNL::U8_MAX = U8(255)
 Constant Max Limit U8.

const S16 TNL::S16_MIN = S16(-32768)
 Constant Min Limit S16.

const S16 TNL::S16_MAX = S16(32767)
 Constant Max Limit S16.

const U16 TNL::U16_MAX = U16(65535)
 Constant Max Limit U16.

const S32 TNL::S32_MIN = S32(-2147483647 - 1)
 Constant Min Limit S32.

const S32 TNL::S32_MAX = S32(2147483647)
 Constant Max Limit S32.

const U32 TNL::U32_MAX = U32(0xffffffff)
 Constant Max Limit U32.

const F32 TNL::F32_MIN = F32(1.175494351e-38F)
 Constant Min Limit F32.

const F32 TNL::F32_MAX = F32(3.402823466e+38F)
 Constant Max Limit F32.


Define Documentation

#define __EQUAL_CONST_F   F32(0.000001)
 

Constant float epsilon used for F32 comparisons.


Variable Documentation

const F32 TNL::FloatOne = F32(1.0) [static]
 

Constant float 1.0.

const F32 TNL::FloatHalf = F32(0.5) [static]
 

Constant float 0.5.

const F32 TNL::FloatZero = F32(0.0) [static]
 

Constant float 0.0.

const F32 TNL::FloatPi = F32(3.14159265358979323846) [static]
 

Constant float PI.

const F32 TNL::Float2Pi = F32(2.0 * 3.14159265358979323846) [static]
 

Constant float 2*PI.

const F32 TNL::FloatInversePi = F32(1.0 / 3.14159265358979323846) [static]
 

Constant float 1 / PI.

const F32 TNL::FloatHalfPi = F32(0.5 * 3.14159265358979323846) [static]
 

Constant float 1/2 * PI.

const F32 TNL::Float2InversePi = F32(2.0 / 3.14159265358979323846) [static]
 

Constant float 2 / PI.

const F32 TNL::FloatInverse2Pi = F32(0.5 / 3.14159265358979323846) [static]
 

Constant float 2 / PI.

const F32 TNL::FloatSqrt2 = F32(1.41421356237309504880f) [static]
 

Constant float sqrt(2).

const F32 TNL::FloatSqrtHalf = F32(0.7071067811865475244008443f) [static]
 

Constant float sqrt(0.5).

const S8 TNL::S8_MIN = S8(-128) [static]
 

Constant Min Limit S8.

const S8 TNL::S8_MAX = S8(127) [static]
 

Constant Max Limit S8.

const U8 TNL::U8_MAX = U8(255) [static]
 

Constant Max Limit U8.

const S16 TNL::S16_MIN = S16(-32768) [static]
 

Constant Min Limit S16.

const S16 TNL::S16_MAX = S16(32767) [static]
 

Constant Max Limit S16.

const U16 TNL::U16_MAX = U16(65535) [static]
 

Constant Max Limit U16.

const S32 TNL::S32_MIN = S32(-2147483647 - 1) [static]
 

Constant Min Limit S32.

const S32 TNL::S32_MAX = S32(2147483647) [static]
 

Constant Max Limit S32.

const U32 TNL::U32_MAX = U32(0xffffffff) [static]
 

Constant Max Limit U32.

const F32 TNL::F32_MIN = F32(1.175494351e-38F) [static]
 

Constant Min Limit F32.

const F32 TNL::F32_MAX = F32(3.402823466e+38F) [static]
 

Constant Max Limit F32.