cpe::intersection_helper Class Reference

Static Public Member Functions

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

Member Function Documentation

std::vector< double > cpe::intersection_helper::sphere_ray ( const vec3 sphere_center,
float  sphere_radius,
const vec3 ray_center,
const vec3 ray_direction 
)
static

Compute the intersection between a sphere and a ray.

Returns
the t-values corresponding to the intersection

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

+ Here is the call graph for this function:


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