cpe::intersection_helper Class Reference

List of all members.

Static Public Member Functions

static std::vector< double > sphere_ray (const v3 &sphere_center, const double &sphere_radius, const v3 &ray_center, const v3 &ray_direction)
 Compute the intersection between a sphere and a ray.

Member Function Documentation

std::vector< double > cpe::intersection_helper::sphere_ray ( const v3 sphere_center,
const double &  sphere_radius,
const v3 ray_center,
const v3 ray_direction 
) [static]

Compute the intersection between a sphere and a ray.

Returns:
the t-values corresponding to the intersection

References cpe::v3::dot(), and cpe::v3::norm2().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Mon Feb 27 18:30:19 2012 by  doxygen 1.6.3