Overture  Version 25
Macros
TriangleClass.C File Reference
#include "TriangleClass.h"
#include "Geom.h"
#include "ArraySimple.h"
Include dependency graph for TriangleClass.C:

Macros

#define TETRAHEDRALVOLUME(vol, a, b, c, d)
 

Macro Definition Documentation

#define TETRAHEDRALVOLUME (   vol,
  a,
  b,
  c,
 
)
Value:
{\
double ad1 = a[1] - d[1];\
double bd1 = b[1] - d[1];\
double cd1 = c[1] - d[1];\
double ad2 = a[2] - d[2];\
double bd2 = b[2] - d[2];\
double cd2 = c[2] - d[2];\
vol= (a[0]-d[0])*(bd1*cd2 - bd2*cd1)\
+ (b[0]-d[0])*(cd1*ad2 - cd2*ad1)\
+ (c[0]-d[0])*(ad1*bd2 - ad2*bd1); \
}

Referenced by Triangle::intersects().