My Project
Static Public Member Functions | Public Attributes | List of all members
RayShapeHit Class Reference

#include <rayGroup.h>

Static Public Member Functions

static int Compare (const void *v1, const void *v2)

Public Attributes

float t

Detailed Description

This class can be used for sorting shapes based on the intersections of their bounding volumes with a given ray.

Member Function Documentation

int RayShapeHit::Compare ( const void *  v1,
const void *  v2 

This is a static method for sorting the hits by the order in which they occured. For example after the bounding volumes have been intersected and the distance and shapes have been written into an array of RayShapes, the array can be sorted by calling:

Member Data Documentation

RayShape* RayShapeHit::shape

The shape that was intersected

float RayShapeHit::t

The distance along the ray to the point of intersection

The documentation for this class was generated from the following files: