Skip to content

five-on-it / packages/world/src/road-profile / profileAcross

Function: profileAcross() ​

profileAcross(profile, road, i, offset): number

Defined in: packages/world/src/road-profile.ts:165

The height of a road's surface at its point i (m), offset metres right of its middle (negative: left; clamped to its edges, width / 2 out), straight between its columns.

Parameters ​

profile ​

RoadProfile

road ​

Pick<RoadDef, "width">

i ​

number

offset ​

number

Returns ​

number