BurgerLib
Defines | Functions | Variables
fpfloatingpoint.cpp File Reference
#include "fpfloat.h"
#include "fxfixed.h"
#include <math.h>
Include dependency graph for fpfloatingpoint.cpp:

Defines

#define FCosine45   (46340.95001f*(1.0/65536.0f))
#define TABLESIZE   512
#define TABLEBITS   9

Functions

float BURGER_API SqrtFast (float n)
float BURGER_API FloatSine (float Angle)
float BURGER_API FloatCosine (float Angle)
float BURGER_API FloatSineInt (int Angle)
float BURGER_API FloatCosineInt (int Angle)
float BURGER_API FloatATan2 (float x, float y)
Fixed32 BURGER_API FixedArcCosine (Fixed32 c)
Fixed32 BURGER_API FixedArcSine (Fixed32 s)
Fixed32 BURGER_API FloatArcCosine (float c)
Fixed32 BURGER_API FloatArcSine (float s)
void BURGER_API Vector3DInit (Vector3D_t *Output, float x, float y, float z)
void BURGER_API Vector3DFromIntVector3D (Vector3D_t *Output, const Burger::FixedVector3D_t *Input)
void BURGER_API Vector3DFromFixedVector3D (Vector3D_t *Output, const Burger::FixedVector3D_t *Input)
Word BURGER_API Vector3DEqual (const Vector3D_t *Input1, const Vector3D_t *Input2)
Word BURGER_API Vector3DEqualWithinRange (const Vector3D_t *Input1, const Vector3D_t *Input2, float Range)
float BURGER_API Vector3DGetAxis (const Vector3D_t *Input, Word Axis)
void BURGER_API Vector3DSetAxis (Vector3D_t *Input, Word Axis, float Val)
float BURGER_API Vector3DGetRadius (const Vector3D_t *Input)
float BURGER_API Vector3DGetRadiusFast (const Vector3D_t *Input)
void BURGER_API Vector3DSetRadius (Vector3D_t *Input, float Len)
float BURGER_API Vector3DGetDistanceSqr (const Vector3D_t *Input1, const Vector3D_t *Input2)
float BURGER_API Vector3DGetDistance (const Vector3D_t *Input1, const Vector3D_t *Input2)
float BURGER_API Vector3DGetDistanceFast (const Vector3D_t *Input1, const Vector3D_t *Input2)
void BURGER_API Vector3DNormalize3 (Vector3D_t *Output, float x, float y, float z)
void BURGER_API Vector3DNormalizeFast (Vector3D_t *Input)
void BURGER_API Vector3DNormalizeFast2 (Vector3D_t *Output, const Vector3D_t *Input)
void BURGER_API Vector3DNormalizeFast3 (Vector3D_t *Output, float x, float y, float z)
void BURGER_API Vector3DNormalizeToLen (Vector3D_t *Input, float Len)
void BURGER_API Vector3DNormalizeToLen2 (Vector3D_t *Output, const Vector3D_t *Input, float Len)
void BURGER_API Matrix3DZero (Matrix3D_t *Input)
void BURGER_API Matrix3DIdentity (Matrix3D_t *Input)
void BURGER_API Matrix3DFromFixedMatrix3D (Matrix3D_t *Output, const Burger::FixedMatrix3D_t *Input)
void BURGER_API Matrix3DSetInt (Matrix3D_t *Output, Word yaw, Word pitch, Word roll)
void BURGER_API Matrix3DSetYawInt (Matrix3D_t *Output, Word yaw)
void BURGER_API Matrix3DSetPitchInt (Matrix3D_t *Output, Word pitch)
void BURGER_API Matrix3DSetRollInt (Matrix3D_t *Output, Word roll)
void BURGER_API Matrix3DSetFixed (Matrix3D_t *Output, Fixed32 yaw, Fixed32 pitch, Fixed32 roll)
void BURGER_API Matrix3DSetYawFixed (Matrix3D_t *Output, Fixed32 yaw)
void BURGER_API Matrix3DSetPitchFixed (Matrix3D_t *Output, Fixed32 pitch)
void BURGER_API Matrix3DSetRollFixed (Matrix3D_t *Output, Fixed32 roll)
void BURGER_API Matrix3DSetFromEuler (Matrix3D_t *Output, const Euler_t *Input)
void BURGER_API Matrix3DSetFromFixedEuler (Matrix3D_t *Output, const FixedEuler_t *Input)
void BURGER_API Matrix3DSetFromQuat (Matrix3D_t *Output, const Quat_t *Input)
void BURGER_API Matrix3DSetTranslate2D (Matrix3D_t *Input, float xVal, float yVal)
void BURGER_API Matrix3DTranspose (Matrix3D_t *Input)
void BURGER_API Matrix3DTranspose2 (Matrix3D_t *Output, const Matrix3D_t *Input)
void BURGER_API Matrix3DGetXVector (Vector3D_t *Output, const Matrix3D_t *Input)
void BURGER_API Matrix3DGetYVector (Vector3D_t *Output, const Matrix3D_t *Input)
void BURGER_API Matrix3DGetZVector (Vector3D_t *Output, const Matrix3D_t *Input)
void BURGER_API Matrix3DTransform2D (Burger::Vector2D_t *Output, const Matrix3D_t *Input)
void BURGER_API Matrix3DTransform2D2 (Burger::Vector2D_t *Output, const Matrix3D_t *Input, const Burger::Vector2D_t *InputV)
void BURGER_API Matrix3DITransform2D (Burger::Vector2D_t *Output, const Matrix3D_t *Input)
void BURGER_API Matrix3DITransform2D2 (Burger::Vector2D_t *Output, const Matrix3D_t *Input, const Burger::Vector2D_t *InputV)
void BURGER_API EulerFromMatrix3D (Euler_t *Output, const Matrix3D_t *Input)
void BURGER_API QuatIdentity (Quat_t *Input)
void BURGER_API QuatNormalize (Quat_t *Input)
float BURGER_API QuatDot (const Quat_t *Input1, const Quat_t *Input2)
void BURGER_API QuatMul2 (Quat_t *Output, const Quat_t *Input1, const Quat_t *Input2)
void BURGER_API Matrix4DZero (Matrix4D_t *Input)
void BURGER_API Matrix4DIdentity (Matrix4D_t *Input)
void BURGER_API Matrix4DSetTranslate3D (Matrix4D_t *Output, float xVal, float yVal, float zVal)
void BURGER_API Matrix4DSetScale (Matrix4D_t *Output, float xVal, float yVal, float zVal)
void BURGER_API Matrix4DTransformVector3D (Vector3D_t *Output, const Matrix4D_t *Input)
void BURGER_API Matrix4DTransformVector3D2 (Vector3D_t *Output, const Matrix4D_t *Input, const Vector3D_t *Input2)
void BURGER_API Matrix4DITransformVector3D (Vector3D_t *Output, const Matrix4D_t *Input)
void BURGER_API Matrix4DITransformVector3D2 (Vector3D_t *Output, const Matrix4D_t *Input, const Vector3D_t *Input2)

Variables

float FAngleArray [TANTABLESIZE+1]
Fixed32 FixedArcCosineTable [ANGLERANGE+1]
Fixed32 FixedArcSineTable [ANGLERANGE+1]
float FSineTable [ANGLERANGE+(ANGLERANGE/4)]
float FloatRecipTable [FLOATRECIPTABLESIZE]
Word32 BurgerSqrtTable [TABLESIZE *2]

Define Documentation

#define FCosine45   (46340.95001f*(1.0/65536.0f))
#define TABLEBITS   9
#define TABLESIZE   512

Function Documentation

void BURGER_API EulerFromMatrix3D ( Euler_t Output,
const Matrix3D_t Input 
)
float BURGER_API FloatATan2 ( float  x,
float  y 
)
float BURGER_API FloatCosine ( float  Angle)
float BURGER_API FloatCosineInt ( int  Angle)
float BURGER_API FloatSine ( float  Angle)
float BURGER_API FloatSineInt ( int  Angle)
void BURGER_API Matrix3DGetXVector ( Vector3D_t Output,
const Matrix3D_t Input 
)
void BURGER_API Matrix3DGetYVector ( Vector3D_t Output,
const Matrix3D_t Input 
)
void BURGER_API Matrix3DGetZVector ( Vector3D_t Output,
const Matrix3D_t Input 
)
void BURGER_API Matrix3DITransform2D2 ( Burger::Vector2D_t Output,
const Matrix3D_t Input,
const Burger::Vector2D_t InputV 
)
void BURGER_API Matrix3DSetFixed ( Matrix3D_t Output,
Fixed32  yaw,
Fixed32  pitch,
Fixed32  roll 
)
void BURGER_API Matrix3DSetFromEuler ( Matrix3D_t Output,
const Euler_t Input 
)
void BURGER_API Matrix3DSetFromQuat ( Matrix3D_t Output,
const Quat_t Input 
)
void BURGER_API Matrix3DSetInt ( Matrix3D_t Output,
Word  yaw,
Word  pitch,
Word  roll 
)
void BURGER_API Matrix3DSetPitchInt ( Matrix3D_t Output,
Word  pitch 
)
void BURGER_API Matrix3DSetRollInt ( Matrix3D_t Output,
Word  roll 
)
void BURGER_API Matrix3DSetTranslate2D ( Matrix3D_t Input,
float  xVal,
float  yVal 
)
void BURGER_API Matrix3DSetYawInt ( Matrix3D_t Output,
Word  yaw 
)
void BURGER_API Matrix3DTransform2D2 ( Burger::Vector2D_t Output,
const Matrix3D_t Input,
const Burger::Vector2D_t InputV 
)
void BURGER_API Matrix3DTranspose2 ( Matrix3D_t Output,
const Matrix3D_t Input 
)
void BURGER_API Matrix4DITransformVector3D ( Vector3D_t Output,
const Matrix4D_t Input 
)
void BURGER_API Matrix4DITransformVector3D2 ( Vector3D_t Output,
const Matrix4D_t Input,
const Vector3D_t Input2 
)
void BURGER_API Matrix4DSetScale ( Matrix4D_t Output,
float  xVal,
float  yVal,
float  zVal 
)
void BURGER_API Matrix4DSetTranslate3D ( Matrix4D_t Output,
float  xVal,
float  yVal,
float  zVal 
)
void BURGER_API Matrix4DTransformVector3D ( Vector3D_t Output,
const Matrix4D_t Input 
)
void BURGER_API Matrix4DTransformVector3D2 ( Vector3D_t Output,
const Matrix4D_t Input,
const Vector3D_t Input2 
)
float BURGER_API QuatDot ( const Quat_t Input1,
const Quat_t Input2 
)
void BURGER_API QuatMul2 ( Quat_t Output,
const Quat_t Input1,
const Quat_t Input2 
)
float BURGER_API SqrtFast ( float  n)
Word BURGER_API Vector3DEqual ( const Vector3D_t Input1,
const Vector3D_t Input2 
)
Word BURGER_API Vector3DEqualWithinRange ( const Vector3D_t Input1,
const Vector3D_t Input2,
float  Range 
)
float BURGER_API Vector3DGetAxis ( const Vector3D_t Input,
Word  Axis 
)
float BURGER_API Vector3DGetDistance ( const Vector3D_t Input1,
const Vector3D_t Input2 
)
float BURGER_API Vector3DGetDistanceFast ( const Vector3D_t Input1,
const Vector3D_t Input2 
)
float BURGER_API Vector3DGetDistanceSqr ( const Vector3D_t Input1,
const Vector3D_t Input2 
)
float BURGER_API Vector3DGetRadius ( const Vector3D_t Input)
float BURGER_API Vector3DGetRadiusFast ( const Vector3D_t Input)
void BURGER_API Vector3DInit ( Vector3D_t Output,
float  x,
float  y,
float  z 
)
void BURGER_API Vector3DNormalize3 ( Vector3D_t Output,
float  x,
float  y,
float  z 
)
void BURGER_API Vector3DNormalizeFast2 ( Vector3D_t Output,
const Vector3D_t Input 
)
void BURGER_API Vector3DNormalizeFast3 ( Vector3D_t Output,
float  x,
float  y,
float  z 
)
void BURGER_API Vector3DNormalizeToLen ( Vector3D_t Input,
float  Len 
)
void BURGER_API Vector3DNormalizeToLen2 ( Vector3D_t Output,
const Vector3D_t Input,
float  Len 
)
void BURGER_API Vector3DSetAxis ( Vector3D_t Input,
Word  Axis,
float  Val 
)
void BURGER_API Vector3DSetRadius ( Vector3D_t Input,
float  Len 
)

Variable Documentation