@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
| Name | Type | Description | Defined in |
|---|---|---|---|
angle | number | The rotation angle of the rectangle, in radians. | src/largest-inscribed-rectangle.ts:21 |
area | number | The area of the rotated rectangle. | src/largest-inscribed-rectangle.ts:19 |