Function CE::Rendering::intersect_clip_rects

Function Documentation

ClipRect2D CE::Rendering::intersect_clip_rects(const ClipRect2D &first, const ClipRect2D &second)

Declaration: [[nodiscard]]

Intersect finite ordered rectangles in one common logical coordinate space.

Parameters:
  • first – First rectangle, borrowed through the call.

  • second – Second rectangle in the same units/origin.

Returns:

Ordered intersection, with equal edges when disjoint. Invalid input throws invalid_args; no viewport conversion occurs.