Static Public Member Functions | |
static int | Compare (const void *v1, const void *v2) |
Public Attributes | |
float | t |
RayShape * | shape |
|
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: |
|
The shape that was intersected |
|
The distance along the ray to the point of intersection |