Skip to content

five-on-it / packages/world/src/signals / axisGroup

Function: axisGroup() ​

axisGroup(graph, signal, axis): number

Defined in: packages/world/src/signals.ts:277

The group of a junction's approaches that runs along an axis (north–south: up and down the screen, along z; east–west: across it): the group of its first approach heading more that way than the other; 0 when none does.

Parameters ​

graph ​

RoadGraph

signal ​

SignalJunction

axis ​

SignalAxis

Returns ​

number