Skip to content

@technobuddha > library > Geometry > Rectangle

Type Alias: LargestInscribedRectUnitOptions

ts
type LargestInscribedRectUnitOptions = {
  aligned?: boolean;
  squareOnly?: boolean;
};

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

Configuration options for the largest inscribed rectangle algorithm.

Properties

PropertyTypeDefault valueDescriptionDefined in
aligned?booleantrueIf true, only consider axis-aligned rectangles. If false, considers rectangles at all orientations.src/largest-inscribed-rectangle.ts:35
squareOnly?booleanfalseIf true, only consider squares (rectangles where width equals height). If false, considers rectangles of any aspect ratio.src/largest-inscribed-rectangle.ts:42