Skip to content

@technobuddha > library > Geometry > Rectangle

Type Alias: Rect

ts
type Rect = Cartesian & {
  height: number;
  width: number;
};

Defined in: @types/geometry.ts:60

A rectangle (defined by its top-left corner, width and height)

Type Declaration

NameTypeDescriptionDefined in
heightnumberThe height of the rectangle.src/@types/geometry.ts:64
widthnumberThe width of the rectangle.src/@types/geometry.ts:62