Skip to content

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

Function: columnPoint() ​

columnPoint(profile, road, i, j, read?): [number, number]

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

Where column j of a road's profile stands at its point i ([x, z], m): its share of the way from the middle out to its side's edge, an edge column on the edge itself; or, read, where its height was read (an edge column a little inside the edge).

Parameters ​

profile ​

RoadProfile

road ​

Pick<RoadDef, "points" | "width">

i ​

number

j ​

number

read? ​

boolean = false

Returns ​

[number, number]