Skip to main content

ray_sphere_local

Function ray_sphere_local 

pub fn ray_sphere_local(
    origin: [f32; 3],
    dir: [f32; 3],
    radius: f32,
    max_toi: f32,
) -> Option<(f32, [f32; 3])>
Expand description

Analytical ray-sphere intersection in local space (sphere centered at origin).