Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

RageMath.cpp File Reference

#include "global.h"
#include "RageMath.h"
#include "RageTypes.h"
#include "RageUtil.h"
#include "RageDisplay.h"
#include "RageLog.h"
#include "arch/Dialog/Dialog.h"

Defines

#define m00   m[0][0]
#define m01   m[0][1]
#define m02   m[0][2]
#define m03   m[0][3]
#define m10   m[1][0]
#define m11   m[1][1]
#define m12   m[1][2]
#define m13   m[1][3]
#define m20   m[2][0]
#define m21   m[2][1]
#define m22   m[2][2]
#define m23   m[2][3]
#define m30   m[3][0]
#define m31   m[3][1]
#define m32   m[3][2]
#define m33   m[3][3]
#define sArg(i)   (GetParam(asTokens,i,iMaxIndexAccessed))
#define fArg(i)   (strtof(sArg(i),NULL))
#define iArg(i)   (atoi(sArg(i)))
#define bArg(i)   (iArg(i)!=0)

Functions

void RageVec3ClearBounds (RageVector3 &mins, RageVector3 &maxs)
void RageVec3AddToBounds (const RageVector3 &p, RageVector3 &mins, RageVector3 &maxs)
void RageVec2Normalize (RageVector2 *pOut, const RageVector2 *pV)
void RageVec3Normalize (RageVector3 *pOut, const RageVector3 *pV)
void RageVec3TransformCoord (RageVector3 *pOut, const RageVector3 *pV, const RageMatrix *pM)
void RageVec3TransformNormal (RageVector3 *pOut, const RageVector3 *pV, const RageMatrix *pM)
void RageVec4TransformCoord (RageVector4 *pOut, const RageVector4 *pV, const RageMatrix *pM)
void RageMatrixIdentity (RageMatrix *pOut)
void RageMatrixMultiply (RageMatrix *pOut, const RageMatrix *pA, const RageMatrix *pB)
void RageMatrixTranslation (RageMatrix *pOut, float x, float y, float z)
void RageMatrixScaling (RageMatrix *pOut, float x, float y, float z)
void RageMatrixRotationX (RageMatrix *pOut, float theta)
void RageMatrixRotationY (RageMatrix *pOut, float theta)
void RageMatrixRotationZ (RageMatrix *pOut, float theta)
RageMatrix RageMatrixRotationX (float theta)
RageMatrix RageMatrixRotationY (float theta)
RageMatrix RageMatrixRotationZ (float theta)
CString GetParam (const CStringArray &sParams, int iIndex, int &iMaxIndexAccessed)
void RageMatrixCommand (CString sCommandString, RageMatrix &mat)
void RageQuatMultiply (RageVector4 *pOut, const RageVector4 &pA, const RageVector4 &pB)
RageVector4 RageQuatFromH (float theta)
RageVector4 RageQuatFromP (float theta)
RageVector4 RageQuatFromR (float theta)
void RageQuatFromHPR (RageVector4 *pOut, RageVector3 hpr)
void RageQuatFromPRH (RageVector4 *pOut, RageVector3 prh)
void RageMatrixFromQuat (RageMatrix *pOut, const RageVector4 q)
void RageQuatSlerp (RageVector4 *pOut, const RageVector4 &from, const RageVector4 &to, float t)
RageMatrix RageLookAt (float eyex, float eyey, float eyez, float centerx, float centery, float centerz, float upx, float upy, float upz)
RageMatrix RageMatrixIdentity ()
void RageMatrixAngles (RageMatrix *pOut, const RageVector3 &angles)
void RageMatrixTranspose (RageMatrix *pOut, const RageMatrix *pIn)

Define Documentation

#define bArg  )     (iArg(i)!=0)
 

#define fArg  )     (strtof(sArg(i),NULL))
 

#define iArg  )     (atoi(sArg(i)))
 

#define m00   m[0][0]
 

#define m01   m[0][1]
 

#define m02   m[0][2]
 

#define m03   m[0][3]
 

#define m10   m[1][0]
 

#define m11   m[1][1]
 

#define m12   m[1][2]
 

#define m13   m[1][3]
 

#define m20   m[2][0]
 

#define m21   m[2][1]
 

#define m22   m[2][2]
 

#define m23   m[2][3]
 

#define m30   m[3][0]
 

#define m31   m[3][1]
 

#define m32   m[3][2]
 

#define m33   m[3][3]
 

#define sArg  )     (GetParam(asTokens,i,iMaxIndexAccessed))
 


Function Documentation

CString GetParam const CStringArray &  sParams,
int  iIndex,
int iMaxIndexAccessed
[static]
 

RageMatrix RageLookAt float  eyex,
float  eyey,
float  eyez,
float  centerx,
float  centery,
float  centerz,
float  upx,
float  upy,
float  upz
 

void RageMatrixAngles RageMatrix pOut,
const RageVector3 angles
 

void RageMatrixCommand CString  sCommandString,
RageMatrix mat
 

void RageMatrixFromQuat RageMatrix pOut,
const RageVector4  q
 

RageMatrix RageMatrixIdentity  ) 
 

void RageMatrixIdentity RageMatrix pOut  ) 
 

void RageMatrixMultiply RageMatrix pOut,
const RageMatrix pA,
const RageMatrix pB
 

RageMatrix RageMatrixRotationX float  theta  ) 
 

void RageMatrixRotationX RageMatrix pOut,
float  theta
 

RageMatrix RageMatrixRotationY float  theta  ) 
 

void RageMatrixRotationY RageMatrix pOut,
float  theta
 

RageMatrix RageMatrixRotationZ float  theta  ) 
 

void RageMatrixRotationZ RageMatrix pOut,
float  theta
 

void RageMatrixScaling RageMatrix pOut,
float  x,
float  y,
float  z
 

void RageMatrixTranslation RageMatrix pOut,
float  x,
float  y,
float  z
 

void RageMatrixTranspose RageMatrix pOut,
const RageMatrix pIn
 

RageVector4 RageQuatFromH float  theta  ) 
 

void RageQuatFromHPR RageVector4 pOut,
RageVector3  hpr
 

RageVector4 RageQuatFromP float  theta  ) 
 

void RageQuatFromPRH RageVector4 pOut,
RageVector3  prh
 

RageVector4 RageQuatFromR float  theta  ) 
 

void RageQuatMultiply RageVector4 pOut,
const RageVector4 pA,
const RageVector4 pB
 

void RageQuatSlerp RageVector4 pOut,
const RageVector4 from,
const RageVector4 to,
float  t
 

void RageVec2Normalize RageVector2 pOut,
const RageVector2 pV
 

void RageVec3AddToBounds const RageVector3 p,
RageVector3 mins,
RageVector3 maxs
 

void RageVec3ClearBounds RageVector3 mins,
RageVector3 maxs
 

void RageVec3Normalize RageVector3 pOut,
const RageVector3 pV
 

void RageVec3TransformCoord RageVector3 pOut,
const RageVector3 pV,
const RageMatrix pM
 

void RageVec3TransformNormal RageVector3 pOut,
const RageVector3 pV,
const RageMatrix pM
 

void RageVec4TransformCoord RageVector4 pOut,
const RageVector4 pV,
const RageMatrix pM
 


Generated on Thu Jan 27 20:57:54 2005 for StepMania by doxygen 1.3.7