Skip to content

@technobuddha > library > Geometry > Rectangle

Type Alias: RotatedRect

ts
type RotatedRect = Rect & {
  angle: number;
  area: number;
};

Defined in: largest-inscribed-rectangle.ts:17

Represents a rectangle that has been rotated by a certain angle. Extends the Rect type with additional properties for the area and rotation angle. const hull = convexHull(points);

Type Declaration

NameTypeDescriptionDefined in
anglenumberThe rotation angle of the rectangle, in radians.src/largest-inscribed-rectangle.ts:21
areanumberThe area of the rotated rectangle.src/largest-inscribed-rectangle.ts:19