#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include "mathtools.h"
Go to the source code of this file.
◆ MUL_V3D
#define MUL_V3D |
( |
| lf, |
|
|
| v ) {v.x*=lf;v.y*=lf;v.z*=lf;} |
◆ TRANSLATE_V3D
#define TRANSLATE_V3D |
( |
| vsrc, |
|
|
| vdest ) |
◆ V3D_TO_V2D
Value:{ \
int Xp, Yp; \
if (v3.z > 2) { \
F2I((distance * v3.x / v3.z),Xp) ; \
F2I((distance * v3.y / v3.z),Yp) ; \
v2.x = Xp + (
width>>1); \
} \
else v2.x=v2.y=-666; \
}
unsigned int height
Definition gfontrle.c:5
unsigned int width
Definition gfontrle.c:4
◆ Y_ROTATE_V3D
#define Y_ROTATE_V3D |
( |
| vi, |
|
|
| vf, |
|
|
| sina, |
|
|
| cosa ) |
◆ v3d_to_v2d()
void v3d_to_v2d |
( |
v3d * | src, |
|
|
int | nbvertex, |
|
|
int | width, |
|
|
int | height, |
|
|
float | distance, |
|
|
v2d * | v2_array ) |