Support Forum       G3D Web Page     
Static Public Member Functions | List of all members
G3D::Intersect Class Reference


More...

Static Public Member Functions

static bool rayAABox (const PrecomputedRay &ray, const AABox &box)
 Returns true if the intersection of the ray and the solid box is non-empty. More...
 
static bool rayAABox (const PrecomputedRay &ray, const AABox &box, float &time)
 Returns true if the intersection of the ray and the solid box is non-empty. More...
 

Detailed Description


BETA API Likely to receive incompatible changes in future releases.

Member Function Documentation

◆ rayAABox() [1/2]

static bool G3D::Intersect::rayAABox ( const PrecomputedRay ray,
const AABox box 
)
static

Returns true if the intersection of the ray and the solid box is non-empty.

Referenced Code: "Fast Ray / Axis-Aligned Bounding Box Overlap Tests using Ray Slopes"
by Martin Eisemann, Thorsten Grosch, Stefan Mueller and Marcus Magnor Computer Graphics Lab, TU Braunschweig, Germany and University of Koblenz-Landau, Germany

◆ rayAABox() [2/2]

static bool G3D::Intersect::rayAABox ( const PrecomputedRay ray,
const AABox box,
float &  time 
)
static

Returns true if the intersection of the ray and the solid box is non-empty.

Parameters
timeIf there is an intersection, set to the time to that intersection. If the ray origin is inside the box, this is a negative value indicating the distance backwards from the ray origin to the first intersection. time is not set if there is no intersection.
Referenced Code: Slope-Mul method from "Fast Ray / Axis-Aligned Bounding Box Overlap Tests using Ray Slopes"
by Martin Eisemann, Thorsten Grosch, Stefan Mueller and Marcus Magnor Computer Graphics Lab, TU Braunschweig, Germany and University of Koblenz-Landau, Germany

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