TinyGL 0.4.1 for MinGW
Data Structures | Macros | Functions
zmath.h File Reference

Go to the source code of this file.

Data Structures

struct  M4
 
struct  M3
 
struct  M34
 
struct  V3
 
struct  V4
 

Macros

#define X   v[0]
 
#define Y   v[1]
 
#define Z   v[2]
 
#define W   v[3]
 

Functions

void gl_M4_Id (M4 *a)
 
int gl_M4_IsId (M4 *a)
 
void gl_M4_Move (M4 *a, M4 *b)
 
void gl_MoveV3 (V3 *a, V3 *b)
 
void gl_MulM4V3 (V3 *a, M4 *b, V3 *c)
 
void gl_MulM3V3 (V3 *a, M4 *b, V3 *c)
 
void gl_M4_MulV4 (V4 *a, M4 *b, V4 *c)
 
void gl_M4_InvOrtho (M4 *a, M4 b)
 
void gl_M4_Inv (M4 *a, M4 *b)
 
void gl_M4_Mul (M4 *c, M4 *a, M4 *b)
 
void gl_M4_MulLeft (M4 *c, M4 *a)
 
void gl_M4_Transpose (M4 *a, M4 *b)
 
void gl_M4_Rotate (M4 *c, float t, int u)
 
int gl_V3_Norm (V3 *a)
 
V3 gl_V3_New (float x, float y, float z)
 
V4 gl_V4_New (float x, float y, float z, float w)
 
int gl_Matrix_Inv (float *r, float *m, int n)
 

Macro Definition Documentation

◆ W

#define W   v[3]

Definition at line 22 of file zmath.h.

◆ X

#define X   v[0]

Definition at line 19 of file zmath.h.

◆ Y

#define Y   v[1]

Definition at line 20 of file zmath.h.

◆ Z

#define Z   v[2]

Definition at line 21 of file zmath.h.

Function Documentation

◆ gl_M4_Id()

void gl_M4_Id ( M4 a)

Definition at line 12 of file zmath.c.

◆ gl_M4_Inv()

void gl_M4_Inv ( M4 a,
M4 b 
)

Definition at line 198 of file zmath.c.

◆ gl_M4_InvOrtho()

void gl_M4_InvOrtho ( M4 a,
M4  b 
)

Definition at line 121 of file zmath.c.

◆ gl_M4_IsId()

int gl_M4_IsId ( M4 a)

Definition at line 20 of file zmath.c.

◆ gl_M4_Move()

void gl_M4_Move ( M4 a,
M4 b 
)

Definition at line 63 of file zmath.c.

◆ gl_M4_Mul()

void gl_M4_Mul ( M4 c,
M4 a,
M4 b 
)

Definition at line 32 of file zmath.c.

◆ gl_M4_MulLeft()

void gl_M4_MulLeft ( M4 c,
M4 a 
)

Definition at line 45 of file zmath.c.

◆ gl_M4_MulV4()

void gl_M4_MulV4 ( V4 a,
M4 b,
V4 c 
)

Definition at line 88 of file zmath.c.

◆ gl_M4_Rotate()

void gl_M4_Rotate ( M4 c,
float  t,
int  u 
)

Definition at line 206 of file zmath.c.

◆ gl_M4_Transpose()

void gl_M4_Transpose ( M4 a,
M4 b 
)

Definition at line 97 of file zmath.c.

◆ gl_Matrix_Inv()

int gl_Matrix_Inv ( float *  r,
float *  m,
int  n 
)

◆ gl_MoveV3()

void gl_MoveV3 ( V3 a,
V3 b 
)

Definition at line 68 of file zmath.c.

◆ gl_MulM3V3()

void gl_MulM3V3 ( V3 a,
M4 b,
V3 c 
)

Definition at line 81 of file zmath.c.

◆ gl_MulM4V3()

void gl_MulM4V3 ( V3 a,
M4 b,
V3 c 
)

Definition at line 74 of file zmath.c.

◆ gl_V3_New()

V3 gl_V3_New ( float  x,
float  y,
float  z 
)

Definition at line 256 of file zmath.c.

◆ gl_V3_Norm()

int gl_V3_Norm ( V3 a)

Definition at line 245 of file zmath.c.

◆ gl_V4_New()

V4 gl_V4_New ( float  x,
float  y,
float  z,
float  w 
)

Definition at line 265 of file zmath.c.