Do more of m401dll/main.c
This commit is contained in:
parent
0d275878cc
commit
08d8e67cda
3 changed files with 1341 additions and 5 deletions
|
|
@ -12,9 +12,9 @@ typedef struct vec2f {
|
|||
#define ABS(x) (((x) < 0) ? -(x) : (x))
|
||||
|
||||
#define VECDistanceXZ(a, b) sqrtf((((a)->x-(b)->x)*((a)->x-(b)->x))+(((a)->z-(b)->z)*((a)->z-(b)->z)))
|
||||
#define VECDistanceAlt(a, b) sqrtf((((a)->x-(b)->x)*((a)->x-(b)->x))+(((a)->y-(b)->y)*((a)->y-(b)->y))+(((a)->z-(b)->z)*((a)->z-(b)->z)))
|
||||
|
||||
#define VECMagXZ(a) sqrtf(((a)->x*(a)->x)+((a)->z*(a)->z))
|
||||
#define VECMagPoint(x, y, z) sqrtf(((x)*(x))+((y)*(y))+((z)*(z)))
|
||||
|
||||
#define sind(x) sin(M_PI*(x)/180.0)
|
||||
#define cosd(x) cos(M_PI*(x)/180.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue