Function parry2d_f64::query::details::ray_toi_with_ball [−][src]
pub fn ray_toi_with_ball(
center: &Point<Real>,
radius: Real,
ray: &Ray,
solid: bool
) -> (bool, Option<Real>)
Computes the time of impact of a ray on a ball.
The first result element is true
if the ray started inside of the ball.