93 return (X >= Left) && (X <= Right) && (Y >= Top) && (Y <= Bottom);
100 template <
typename T>
104 Rect Overlapping(std::max(Left, Rectangle.
Left),
105 std::max(Top, Rectangle.
Top),
106 std::min(Right, Rectangle.
Right),
107 std::min(Bottom, Rectangle.
Bottom));
113 *OverlappingRect = Overlapping;
119 *OverlappingRect =
Rect(0, 0, 0, 0);
Rect is an utility class for manipulating rectangles.
T Right
Right coordinate of the rectangle.
T Bottom
Bottom coordinate of the rectangle.
T Top
Top coordinate of the rectangle.
T Left
Left coordinate of the rectangle.