Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
matrix3.h File Reference
#include "always.h"
#include "vector3.h"
#include "wwdebug.h"

Go to the source code of this file.

Classes

class  Matrix3x3
 

Macros

#define Matrix3_H
 
#define ROWCOL(i, j)
 

Functions

WWINLINE Matrix3x3 operator- (const Matrix3x3 &a)
 
WWINLINE Matrix3x3 operator* (const Matrix3x3 &a, float d)
 
WWINLINE Matrix3x3 operator* (float d, const Matrix3x3 &a)
 
WWINLINE Matrix3x3 operator/ (const Matrix3x3 &a, float d)
 
WWINLINE Matrix3x3 operator+ (const Matrix3x3 &a, const Matrix3x3 &b)
 
WWINLINE Matrix3x3 operator- (const Matrix3x3 &a, const Matrix3x3 &b)
 
WWINLINE Matrix3x3 operator* (const Matrix3x3 &a, const Matrix3x3 &b)
 
WWINLINE Vector3 operator* (const Matrix3x3 &a, const Vector3 &v)
 
WWINLINE int operator== (const Matrix3x3 &a, const Matrix3x3 &b)
 
WWINLINE int operator!= (const Matrix3x3 &a, const Matrix3x3 &b)
 
WWINLINE Matrix3x3 Create_X_Rotation_Matrix3 (float s, float c)
 
WWINLINE Matrix3x3 Create_X_Rotation_Matrix3 (float rad)
 
WWINLINE Matrix3x3 Create_Y_Rotation_Matrix3 (float s, float c)
 
WWINLINE Matrix3x3 Create_Y_Rotation_Matrix3 (float rad)
 
WWINLINE Matrix3x3 Create_Z_Rotation_Matrix3 (float s, float c)
 
WWINLINE Matrix3x3 Create_Z_Rotation_Matrix3 (float rad)
 

Macro Definition Documentation

◆ Matrix3_H

#define Matrix3_H

Definition at line 65 of file matrix3.h.

◆ ROWCOL

#define ROWCOL ( i,
j )
Value:
a[i][0]*b[0][j] + a[i][1]*b[1][j] + a[i][2]*b[2][j]

Function Documentation

◆ Create_X_Rotation_Matrix3() [1/2]

WWINLINE Matrix3x3 Create_X_Rotation_Matrix3 ( float rad)

Definition at line 905 of file matrix3.h.

◆ Create_X_Rotation_Matrix3() [2/2]

WWINLINE Matrix3x3 Create_X_Rotation_Matrix3 ( float s,
float c )

Definition at line 886 of file matrix3.h.

◆ Create_Y_Rotation_Matrix3() [1/2]

WWINLINE Matrix3x3 Create_Y_Rotation_Matrix3 ( float rad)

Definition at line 941 of file matrix3.h.

◆ Create_Y_Rotation_Matrix3() [2/2]

WWINLINE Matrix3x3 Create_Y_Rotation_Matrix3 ( float s,
float c )

Definition at line 922 of file matrix3.h.

◆ Create_Z_Rotation_Matrix3() [1/2]

WWINLINE Matrix3x3 Create_Z_Rotation_Matrix3 ( float rad)

Definition at line 977 of file matrix3.h.

◆ Create_Z_Rotation_Matrix3() [2/2]

WWINLINE Matrix3x3 Create_Z_Rotation_Matrix3 ( float s,
float c )

Definition at line 958 of file matrix3.h.

◆ operator!=()

WWINLINE int operator!= ( const Matrix3x3 & a,
const Matrix3x3 & b )

Definition at line 764 of file matrix3.h.

◆ operator*() [1/4]

WWINLINE Matrix3x3 operator* ( const Matrix3x3 & a,
const Matrix3x3 & b )

Definition at line 731 of file matrix3.h.

◆ operator*() [2/4]

WWINLINE Vector3 operator* ( const Matrix3x3 & a,
const Vector3 & v )

Definition at line 748 of file matrix3.h.

◆ operator*() [3/4]

WWINLINE Matrix3x3 operator* ( const Matrix3x3 & a,
float d )

Definition at line 672 of file matrix3.h.

◆ operator*() [4/4]

WWINLINE Matrix3x3 operator* ( float d,
const Matrix3x3 & a )

Definition at line 677 of file matrix3.h.

◆ operator+()

WWINLINE Matrix3x3 operator+ ( const Matrix3x3 & a,
const Matrix3x3 & b )

Definition at line 691 of file matrix3.h.

◆ operator-() [1/2]

WWINLINE Matrix3x3 operator- ( const Matrix3x3 & a)

Definition at line 667 of file matrix3.h.

◆ operator-() [2/2]

WWINLINE Matrix3x3 operator- ( const Matrix3x3 & a,
const Matrix3x3 & b )

Definition at line 711 of file matrix3.h.

◆ operator/()

WWINLINE Matrix3x3 operator/ ( const Matrix3x3 & a,
float d )

Definition at line 682 of file matrix3.h.

◆ operator==()

WWINLINE int operator== ( const Matrix3x3 & a,
const Matrix3x3 & b )

Definition at line 758 of file matrix3.h.