Support Forum       G3D Web Page     
Classes | Namespaces | Macros
Ray.h File Reference

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License. More...

Classes

class  G3D::Ray
 A 3D Ray, optionally limited to a positive subsegment of the ray. More...
 

Namespaces

 G3D
 

Macros

#define CROSS(dest, v1, v2)
 
#define DOT(v1, v2)   (v1[0]*v2[0]+v1[1]*v2[1]+v1[2]*v2[2])
 
#define EPSILON   0.000001
 
#define SUB(dest, v1, v2)
 

Detailed Description

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License.

Macro Definition Documentation

◆ CROSS

#define CROSS (   dest,
  v1,
  v2 
)
Value:
dest[0]=v1[1]*v2[2]-v1[2]*v2[1]; \
dest[1]=v1[2]*v2[0]-v1[0]*v2[2]; \
dest[2]=v1[0]*v2[1]-v1[1]*v2[0];

Referenced by G3D::Ray::intersectionTime().

◆ DOT

#define DOT (   v1,
  v2 
)    (v1[0]*v2[0]+v1[1]*v2[1]+v1[2]*v2[2])

◆ EPSILON

#define EPSILON   0.000001

◆ SUB

#define SUB (   dest,
  v1,
  v2 
)
Value:
dest[0]=v1[0]-v2[0]; \
dest[1]=v1[1]-v2[1]; \
dest[2]=v1[2]-v2[2];

Referenced by G3D::Ray::intersectionTime().


documentation generated on Wed Nov 24 2021 08:01:51 using doxygen 1.8.15