Skip to main content

gpu_gjk_distance

Function gpu_gjk_distance 

Source
pub fn gpu_gjk_distance(vertices_a: &[[f32; 3]], vertices_b: &[[f32; 3]]) -> f32
Expand description

Estimate the minimum distance between two convex hulls using a simplified GJK approach (brute-force vertex-pair minimum for the mock GPU backend).

Returns 0.0 if either set is empty.