pub fn rectangle_intersection_area(a: Rect2d, b: Rect2d) -> Result<f64>
Expand description

Finds out if there is any intersection between two rectangles

mainly useful for language bindings

Parameters

  • rect1: First rectangle
  • rect2: Second rectangle

Returns

the area of the intersection