Skip to main content

gpu_sphere_sphere_overlap

Function gpu_sphere_sphere_overlap 

Source
pub fn gpu_sphere_sphere_overlap(
    c1: [f32; 3],
    r1: f32,
    c2: [f32; 3],
    r2: f32,
) -> bool
Expand description

Test whether two spheres overlap (or touch).

Returns true when the distance between centres is ≤ r1 + r2.