warp.geometry.intersect_aabb_aabb#

warp.geometry.intersect_aabb_aabb(
a_lower: vec3f,
a_upper: vec3f,
b_lower: vec3f,
b_upper: vec3f,
) → bool[source]#
  • Kernel: true
  • Python: true
  • Differentiable: false

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 (vec3 or vec3d), 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:

True if the boxes overlap, or False otherwise.

warp.geometry.intersect_aabb_aabb(
a_lower: vec3d,
a_upper: vec3d,
b_lower: vec3d,
b_upper: vec3d,
) → bool[source]
  • Kernel: true
  • Python: true
  • Differentiable: false

Double-precision overload of warp.geometry.intersect_aabb_aabb().