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. | |
| 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.
References cpe::v3::dot(), and cpe::v3::norm2().

1.6.3