Skip to content

five-on-it / packages/world/src/level / roadLength

Function: roadLength() ​

roadLength(road): number

Defined in: packages/world/src/level.ts:730

The length of a road's centre line on the ground (m): the sum of its segments' horizontal lengths.

Parameters ​

road ​

Pick<RoadDef, "points">

Returns ​

number