Rectangle
A rectangular ConvexPolygon with 4 sides at right-angles.
x
(0,0) ──▶
│
y ▼
┌──────────────────────────┐
│ │
│ │
│ │
│ │ height
│ │
│ │
│ │
└──────────────────────────┘
width
Author
Nicholas Eddy
Constructors
Properties
Functions
Rectangle that has been adjusted as follows [x + left, y + top, w - (left + right), h - (top + bottom)]
, where the adjustments are from the inset
Rectangle that has been adjusted as follows [x + i, y + i, w - 2i, h - 2i]
, where i
is the inset
Checks whether the given rectangle intersects this one
Inherited functions
Creates a Circle that is inscribed within the rectangle
Creates an Ellipse that is inscribed within the rectangle
Create a new ConvexPolygon with each point transformed by transform.
Create a new ConvexPolygon with the same points, but in reversed order.
Creates a rounded shape from a Polygon. The resulting shape is essentially a polygon with the vertices rounded using a semicircular curve.
Returns a new Rectangle with the specified size, and all the other dimensions from this one.