warp.geometry.intersect_aabb_aabb#
- warp.geometry.intersect_aabb_aabb( ) bool[source]#
Test whether two closed axis-aligned bounding boxes overlap.
Face, edge, and corner contact count as intersections. Zero-width boxes (planes, lines, or points) are supported. All coordinates must be finite, use the same type (
vec3orvec3d), and share a coordinate space. Each lower bound must be componentwise less than or equal to its upper bound. No tolerance is added; expand the bounds to request a spatial margin. The boolean result is not differentiable.- Parameters:
a_lower – Lower corner of the first box.
a_upper – Upper corner of the first box.
b_lower – Lower corner of the second box.
b_upper – Upper corner of the second box.
- Returns:
Trueif the boxes overlap, orFalseotherwise.