Skip to content

five-on-it / packages/world/src/road-graph / laneCentre

Function: laneCentre() ​

laneCentre(graph, edge, t): object

Defined in: packages/world/src/road-graph.ts:323

A point on a lane: t of the way (0 to 1) from the edge's start node to its end node, shifted to the lane's offset, with the lane's heading (rad, 0 faces +z).

Parameters ​

graph ​

RoadGraph

edge ​

number

t ​

number

Returns ​

object

x ​

x: number

yaw ​

yaw: number

z ​

z: number