ARX  1.0
The next-generation open source augmented reality toolkit.
Loading...
Searching...
No Matches
Macros | Functions
mtx.c File Reference
#include <math.h>
#include <ARX/ARG/mtx.h>
Include dependency graph for mtx.c:

Macros

#define DTORf   0.01745329251994f
 
#define DTORd   0.01745329251994
 
#define CROSS(dest, v1, v2)   {dest[0] = v1[1]*v2[2] - v1[2]*v2[1]; dest[1] = v1[2]*v2[0] - v1[0]*v2[2]; dest[2] = v1[0]*v2[1] - v1[1]*v2[0];}
 

Functions

void mtxLoadIdentityf (float M[16])
 
void mtxLoadMatrixf (float M[16], const float T[16])
 
void mtxMultMatrixf (float M[16], const float T[16])
 
void mtxTranslatef (float M[16], const float x, const float y, const float z)
 
void mtxRotatef (float M[16], const float q, const float x, const float y, const float z)
 
void mtxScalef (float M[16], const float x, const float y, const float z)
 
void mtxOrthof (float M[16], float left, float right, float bottom, float top, float zNear, float zFar)
 
void mtxFrustumf (float M[16], float left, float right, float bottom, float top, float zNear, float zFar)
 
void mtxPerspectivef (float M[16], float fovy, float aspect, float zNear, float zFar)
 
void mtxLookAtf (float M[16], float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ)
 
void mtxLoadIdentityd (double M[16])
 
void mtxLoadMatrixd (double M[16], const double T[16])
 
void mtxMultMatrixd (double M[16], const double T[16])
 
void mtxTranslated (double M[16], const double x, const double y, const double z)
 
void mtxRotated (double M[16], const double q, const double x, const double y, const double z)
 
void mtxScaled (double M[16], const double x, const double y, const double z)
 
void mtxOrthod (double M[16], double left, double right, double bottom, double top, double zNear, double zFar)
 
void mtxFrustumd (double M[16], double left, double right, double bottom, double top, double zNear, double zFar)
 
void mtxPerspectived (double M[16], double fovy, double aspect, double zNear, double zFar)
 
void mtxLookAtd (double M[16], double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)
 

Macro Definition Documentation

◆ CROSS

#define CROSS (   dest,
  v1,
  v2 
)    {dest[0] = v1[1]*v2[2] - v1[2]*v2[1]; dest[1] = v1[2]*v2[0] - v1[0]*v2[2]; dest[2] = v1[0]*v2[1] - v1[1]*v2[0];}

◆ DTORd

#define DTORd   0.01745329251994

◆ DTORf

#define DTORf   0.01745329251994f

Function Documentation

◆ mtxFrustumd()

void mtxFrustumd ( double  M[16],
double  left,
double  right,
double  bottom,
double  top,
double  zNear,
double  zFar 
)
Here is the call graph for this function:

◆ mtxFrustumf()

void mtxFrustumf ( float  M[16],
float  left,
float  right,
float  bottom,
float  top,
float  zNear,
float  zFar 
)
Here is the call graph for this function:

◆ mtxLoadIdentityd()

void mtxLoadIdentityd ( double  M[16])

◆ mtxLoadIdentityf()

void mtxLoadIdentityf ( float  M[16])

◆ mtxLoadMatrixd()

void mtxLoadMatrixd ( double  M[16],
const double  T[16] 
)

◆ mtxLoadMatrixf()

void mtxLoadMatrixf ( float  M[16],
const float  T[16] 
)

◆ mtxLookAtd()

void mtxLookAtd ( double  M[16],
double  eyeX,
double  eyeY,
double  eyeZ,
double  centerX,
double  centerY,
double  centerZ,
double  upX,
double  upY,
double  upZ 
)
Here is the call graph for this function:

◆ mtxLookAtf()

void mtxLookAtf ( float  M[16],
float  eyeX,
float  eyeY,
float  eyeZ,
float  centerX,
float  centerY,
float  centerZ,
float  upX,
float  upY,
float  upZ 
)
Here is the call graph for this function:

◆ mtxMultMatrixd()

void mtxMultMatrixd ( double  M[16],
const double  T[16] 
)

◆ mtxMultMatrixf()

void mtxMultMatrixf ( float  M[16],
const float  T[16] 
)

◆ mtxOrthod()

void mtxOrthod ( double  M[16],
double  left,
double  right,
double  bottom,
double  top,
double  zNear,
double  zFar 
)
Here is the call graph for this function:

◆ mtxOrthof()

void mtxOrthof ( float  M[16],
float  left,
float  right,
float  bottom,
float  top,
float  zNear,
float  zFar 
)
Here is the call graph for this function:

◆ mtxPerspectived()

void mtxPerspectived ( double  M[16],
double  fovy,
double  aspect,
double  zNear,
double  zFar 
)
Here is the call graph for this function:

◆ mtxPerspectivef()

void mtxPerspectivef ( float  M[16],
float  fovy,
float  aspect,
float  zNear,
float  zFar 
)
Here is the call graph for this function:

◆ mtxRotated()

void mtxRotated ( double  M[16],
const double  q,
const double  x,
const double  y,
const double  z 
)
Here is the call graph for this function:

◆ mtxRotatef()

void mtxRotatef ( float  M[16],
const float  q,
const float  x,
const float  y,
const float  z 
)
Here is the call graph for this function:

◆ mtxScaled()

void mtxScaled ( double  M[16],
const double  x,
const double  y,
const double  z 
)
Here is the call graph for this function:

◆ mtxScalef()

void mtxScalef ( float  M[16],
const float  x,
const float  y,
const float  z 
)
Here is the call graph for this function:

◆ mtxTranslated()

void mtxTranslated ( double  M[16],
const double  x,
const double  y,
const double  z 
)
Here is the call graph for this function:

◆ mtxTranslatef()

void mtxTranslatef ( float  M[16],
const float  x,
const float  y,
const float  z 
)
Here is the call graph for this function: