Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Zmacro.h File Reference

#include "Zdef.h"
#include <math.h>
#include <stdio.h>

Go to the source code of this file.

Defines

#define ZM_FLOAT_EQ(x, v)   (((v - ZD_EPSILON) <x) && (x < (v + ZD_EPSILON)))
 float equivalence test

#define ZM_SQRT(x)   (zfloat) sqrt(x)
 sqrt

#define ZM_FABS(x)   fabs(x)
 fabs

#define ZM_CVECTOR3_OUT(x)   printf("x:%1.2f, y:%1.2f, z:%1.2f\n", x.fCoord[0], x.fCoord[1], x.fCoord[2])
 output a CVector3

#define ZM_CVECTORTEX3_OUT(x)   printf("x:%1.2f, y:%1.2f, z:%1.2f, u:%1.2f, v:%1.2f\n", x.fCoord[0], x.fCoord[1], x.fCoord[2], x.fTexcoord[0], x.fTexcoord[1])
 output a CVectorTex3

#define ZM_FLOAT_OUT(x)   printf("%1.2f\n", x)
 output a zfloat


Define Documentation

#define ZM_CVECTOR3_OUT      printf("x:%1.2f, y:%1.2f, z:%1.2f\n", x.fCoord[0], x.fCoord[1], x.fCoord[2])
 

output a CVector3

#define ZM_CVECTORTEX3_OUT      printf("x:%1.2f, y:%1.2f, z:%1.2f, u:%1.2f, v:%1.2f\n", x.fCoord[0], x.fCoord[1], x.fCoord[2], x.fTexcoord[0], x.fTexcoord[1])
 

output a CVectorTex3

#define ZM_FABS      fabs(x)
 

fabs

#define ZM_FLOAT_EQ x,
     (((v - ZD_EPSILON) <x) && (x < (v + ZD_EPSILON)))
 

float equivalence test

#define ZM_FLOAT_OUT      printf("%1.2f\n", x)
 

output a zfloat

#define ZM_SQRT      (zfloat) sqrt(x)
 

sqrt




SourceForge.net Logo