Skip to main content

simd_box_box_intersection

Function simd_box_box_intersection 

Source
pub fn simd_box_box_intersection(
    box1_min: &ArrayView1<'_, f64>,
    box1_max: &ArrayView1<'_, f64>,
    box2_min: &ArrayView1<'_, f64>,
    box2_max: &ArrayView1<'_, f64>,
) -> SpatialResult<bool>
Expand description

SIMD-accelerated axis-aligned bounding box intersection test

Tests if two axis-aligned bounding boxes intersect.

§Arguments

  • box1_min - Minimum corner of first box
  • box1_max - Maximum corner of first box
  • box2_min - Minimum corner of second box
  • box2_max - Maximum corner of second box

§Returns

  • true if boxes intersect, false otherwise

§Errors

Returns error if dimensions don’t match