five-on-it / packages/world/src/road-profile / RoadProfile
Interface: RoadProfile
Defined in: packages/world/src/road-profile.ts:32
A road's profile: where its edges are and how high its surface stands in columns across it (see the module's documentation).
Properties
columns
columns:
number
Defined in: packages/world/src/road-profile.ts:34
How many columns it has across: an odd number, the middle one under the centre line, the first under the left edge.
edges
edges:
Float64Array
Defined in: packages/world/src/road-profile.ts:36
Where each point's edges are on the ground, mitred at the bends: its left x z, then its right x z, four numbers a point (m).
heights
heights:
Float64Array
Defined in: packages/world/src/road-profile.ts:38
The surface's height in each column at each point, from the left edge to the right, columns numbers a point (m).