Skip to content

five-on-it / apps/tools/src/roof-spots / ROOF

Variable: ROOF ​

const ROOF: object

Defined in: apps/tools/src/roof-spots.ts:27

How a roof is read.

Type Declaration ​

apart ​

readonly apart: 0.5 = 0.5

Two spots keep their radii and this much between them (m).

cell ​

readonly cell: 0.5 = 0.5

The side of the grid's cells (m).

clear ​

readonly clear: 1 = 1

A spot has at least this much room round it (m).

minArea ​

readonly minArea: 24 = 24

And at least this large (m²).

minHeight ​

readonly minHeight: 3 = 3

A roof is at least this high over the ground (m): a forecourt is none.

most ​

readonly most: 8 = 8

The most spots a roof gives.

reach ​

readonly reach: 5 = 5

No spot claims more room than this (m).

rise ​

readonly rise: 0.05 = 0.05

A triangle that rises more than this over the roof stands on it (m).