Skip to content

RectangleI

Rectangle with integer coordinates

Constructors
RectangleI(int, int, int, int) Rectangle Constructor
RectangleI(PointI, int, int) Rectangle Constructor
RectangleI(PointI, PointI) Rectangle Constructor
Properties
Bottom Rectangle Bottom
Center Return the Rectangle center
Height Height
Left Rectangle left
Right Rectangle right
Top Rectangle top
Width Width
Methods
Contains(PointI, bool) Return true if p is contained in the rectangle
Contains(PointF) Return true if p is contained in the rectangle
IsContainedIn(DeviceRectangleShape) Return true if this rectangle is contained in r
IsContainedIn(RectangleI) Return true if this rectangle is contained in r
IsPartiallyContainedIn(DeviceRectangleShape) Return true if a part of the rectangle is contained in r (in the design coordinate system)
IsPartiallyContainedIn(RectangleI, bool) Return true if a part of the rectangle is contained in r (in the design coordinate system)
TouchBorderOnly(RectangleI) Return True if the two rectangles only touch the side of eachother