Tachyon (current)  Current Main Branch
Macros
macros.h File Reference

Go to the source code of this file.

Macros

#define MYMAX(a, b)   ((a) > (b) ? (a) : (b))
 
#define MYMIN(a, b)   ((a) < (b) ? (a) : (b))
 
#define VDOT(return, a, b)   return=(a.x * b.x + a.y * b.y + a.z * b.z); \
 
#define RAYPNT(c, a, b)
 
#define VSUB(a, b, c)
 
#define VCROSS(a, b, c)
 

Macro Definition Documentation

◆ MYMAX

#define MYMAX (   a,
 
)    ((a) > (b) ? (a) : (b))

Definition at line 12 of file macros.h.

Referenced by box_normal(), cellbound(), engrid_cell(), fcylinder_bbox(), globalbound(), and tri_bbox().

◆ MYMIN

#define MYMIN (   a,
 
)    ((a) < (b) ? (a) : (b))

Definition at line 13 of file macros.h.

Referenced by cellbound(), fcylinder_bbox(), globalbound(), and tri_bbox().

◆ RAYPNT

#define RAYPNT (   c,
  a,
 
)
Value:
c.x = a.o.x + ( a.d.x * b ); \
c.y = a.o.y + ( a.d.y * b ); \
c.z = a.o.z + ( a.d.z * b ); \

Definition at line 18 of file macros.h.

Referenced by add_clipped_intersection(), add_clipped_shadow_intersection(), fcylinder_intersect(), full_shader(), low_shader(), and medium_shader().

◆ VCROSS

#define VCROSS (   a,
  b,
 
)
Value:
c->x = (a->y * b->z) - (a->z * b->y); \
c->y = (a->z * b->x) - (a->x * b->z); \
c->z = (a->x * b->y) - (a->y * b->x); \

Definition at line 30 of file macros.h.

◆ VDOT

#define VDOT (   return,
  a,
 
)    return=(a.x * b.x + a.y * b.y + a.z * b.z); \

◆ VSUB

#define VSUB (   a,
  b,
 
)