Skip to content

Rectangle

Rectangle class represents a rectangle in 2D space.

Rendering a rectangle

Rotating a rectangle

Rectangle is special implementation of Path. Thanks to that it contains all methods like .transform, .intersect and much more.

Intersecting 2 rectangles