Function swri_image_util::Intersects

Function Documentation

bool swri_image_util::Intersects(const BoundingBox &box1, const BoundingBox &box2)

Determine if two aligned rectangles intersect one another.

Parameters:
  • box1[in] The first rectangle.

  • box2[in] The second rectangle.

Returns:

True if box1 intersects with box2. False otherwise.