Rectangle2d
Public class
Signature
class Rectangle2d extends Polygon2d {}
References
Source
packages/editor/src/lib/primitives/geometry/Rectangle2d.ts
Constructor
Public constructor
Constructs a new instance of the Rectangle2d
class
Parameters
Name | Description |
---|---|
|
|
Properties
h
Public property
Signature
h: number
w
Public property
Signature
w: number
x
Public property
Signature
x: number
y
Public property
Signature
y: number
Methods
getBounds()
Public method
Signature
getBounds(): Box
References