Shadowrun: Awakened 29 September 2011 - Build 871
Defines
macros.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

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

Define Documentation

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

Definition at line 65 of file macros.h.

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

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

Definition at line 66 of file macros.h.

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

#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 71 of file macros.h.

Referenced by bndbox_intersect(), fcylinder_intersect(), and shader().

#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 83 of file macros.h.

#define VDOT (   return,
  a,
 
)    return=(a.x * b.x + a.y * b.y + a.z * b.z); \
#define VSUB (   a,
  b,
 
)
Value:
c.x = (a.x - b.x);      \
c.y = (a.y - b.y);      \
c.z = (a.z - b.z);      \

Definition at line 77 of file macros.h.

Referenced by ext_volume_texture(), light_intersect(), ring_intersect(), shader(), sphere_intersect(), and stri_normal().


Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net