cleanup Model, remove MathUtil files, fix col major/row major errors
This commit is contained in:
@@ -4,13 +4,21 @@
|
||||
-----------------------------------------------------------------------------
|
||||
File: RageMath.h
|
||||
|
||||
Desc: .
|
||||
Desc: Math utility functions. Most of these prototypes
|
||||
match up with the D3DX math functions. Take a function name,
|
||||
replace "Rage" with "D3DX" and look it up in the D3D SDK docs
|
||||
for details.
|
||||
|
||||
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
||||
Chris Danford
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#define PI ((float)3.1415926535897932384626433832795)
|
||||
#define DegreeToRadian( degree ) ((degree) * (PI / 180.0f))
|
||||
#define RadianToDegree( radian ) ((radian) * (180.0f / PI))
|
||||
|
||||
|
||||
struct RageVector2;
|
||||
struct RageVector3;
|
||||
struct RageVector4;
|
||||
@@ -22,6 +30,7 @@ void RageVec3AddToBounds( const RageVector3 &p, RageVector3 &mins, RageVector3 &
|
||||
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 );
|
||||
RageMatrix RageMatrixIdentity();
|
||||
@@ -47,5 +56,7 @@ 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 RageMatrixTranspose( RageMatrix* pOut, const RageMatrix* pIn );
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user