MercuryMath.h File Reference

#include <math.h>

Go to the source code of this file.

Defines

#define DEGRAD   0.01745329251994329576f
#define RADDEG   57.2957795130823208767f
#define Q_PI   3.14159265358979323846f
#define SIN(x)   sinf( x )
#define COS(x)   cosf( x )
#define ATAN2(x, y)   atan2f( x, y )
#define ASIN(x)   asinf ( x )
#define ACOS(x)   acosf ( x )
#define SQRT(x)   sqrtf( x )
#define TAN(x)   tanf( x )
#define ABS(x)   ((x<0)?(-x):(x))
#define SQ(x)   ((x)*(x));
#define DotProduct(x, y)   ((x)[0]*(y)[0]+(x)[1]*(y)[1]+(x)[2]*(y)[2])

Functions

void Mul4f (const float *first, const float *second, float *out)
void Div4f (const float *first, const float *second, float *out)
void Add4f (const float *first, const float *second, float *out)
void Sub4f (const float *first, const float *second, float *out)
void Copy4f (void *dest, const void *source)
void Copy8f (void *dest, const void *source)
void Copy16f (void *dest, const void *source)
void R_ConcatTransforms4 (const float *in1, const float *in2, float *out)
void VectorMultiply4f (const float *m, float *p, float *out)


Define Documentation

#define ABS (  )     ((x<0)?(-x):(x))

Definition at line 29 of file MercuryMath.h.

#define ACOS (  )     acosf ( x )

Definition at line 26 of file MercuryMath.h.

#define ASIN (  )     asinf ( x )

Definition at line 25 of file MercuryMath.h.

#define ATAN2 ( x,
 )     atan2f( x, y )

Definition at line 24 of file MercuryMath.h.

#define COS (  )     cosf( x )

Definition at line 23 of file MercuryMath.h.

#define DEGRAD   0.01745329251994329576f

Definition at line 6 of file MercuryMath.h.

#define DotProduct ( x,
 )     ((x)[0]*(y)[0]+(x)[1]*(y)[1]+(x)[2]*(y)[2])

Definition at line 34 of file MercuryMath.h.

#define Q_PI   3.14159265358979323846f

Definition at line 8 of file MercuryMath.h.

#define RADDEG   57.2957795130823208767f

Definition at line 7 of file MercuryMath.h.

#define SIN (  )     sinf( x )

Definition at line 22 of file MercuryMath.h.

#define SQ (  )     ((x)*(x));

Definition at line 32 of file MercuryMath.h.

#define SQRT (  )     sqrtf( x )

Definition at line 27 of file MercuryMath.h.

#define TAN (  )     tanf( x )

Definition at line 28 of file MercuryMath.h.


Function Documentation

void Add4f ( const float *  first,
const float *  second,
float *  out 
)

Definition at line 23 of file MercuryMath.cpp.

void Copy16f ( void *  dest,
const void *  source 
)

Definition at line 60 of file MercuryMath.cpp.

void Copy4f ( void *  dest,
const void *  source 
)

Definition at line 39 of file MercuryMath.cpp.

void Copy8f ( void *  dest,
const void *  source 
)

Definition at line 47 of file MercuryMath.cpp.

void Div4f ( const float *  first,
const float *  second,
float *  out 
)

Definition at line 15 of file MercuryMath.cpp.

void Mul4f ( const float *  first,
const float *  second,
float *  out 
)

Definition at line 7 of file MercuryMath.cpp.

void R_ConcatTransforms4 ( const float *  in1,
const float *  in2,
float *  out 
)

Definition at line 83 of file MercuryMath.cpp.

void Sub4f ( const float *  first,
const float *  second,
float *  out 
)

Definition at line 31 of file MercuryMath.cpp.

void VectorMultiply4f ( const float *  m,
float *  p,
float *  out 
)

Definition at line 124 of file MercuryMath.cpp.


Hosted by SourceForge.net Logo