|RectangleOverlap (const QPointF ¢er, int width, int height, double rotationDegrees=0.0)|
|bool||intersects (const QPointF ¢er, int width, int height, double rotationDegrees=0.0) const|
Checks if two potentially rotated rectangles intersect.
This class checks if two rectangles overlap. It is more general that QRect::intersects in that the rectangles are not necessarily aligned to the axes (that is they can be specified as rotated around their center points).
Constructor & Destructor Documentation
|RectangleOverlap::RectangleOverlap||(||const QPointF &||center,|
Member Function Documentation
|bool RectangleOverlap::intersects||(||const QPointF &||center,|
Check if the input rectangle overlaps the reference rectangle.
center the center of the input rectangle width its width height its height rotationDegrees amount in degrees the rectangle is rotated counter-clockwise
- true if the rectangles overlap
The documentation for this class was generated from the following files: