Skip to main content

ray_sphere_intersection

Function ray_sphere_intersection 

Source
fn ray_sphere_intersection(
    origin: Vec3,
    dir: Vec3,
    center: Vec3,
    radius: f32,
) -> Option<f32>