Static Public Member Functions | |
| static std::vector< double > | sphere_ray (const vec3 &sphere_center, const double &sphere_radius, const vec3 &ray_center, const vec3 &ray_direction) |
| Compute the intersection between a sphere and a ray. More... | |
|
static |
Compute the intersection between a sphere and a ray.
References cpe::vec3::dot(), and cpe::vec3::norm2().
Referenced by scene::picking_grid().
Here is the call graph for this function: