utils/route¶
Functions¶
clampActiveWaypoint()¶
Defined in: utils/route.ts:13
Clamp BlueSky's active-waypoint index (iactwp) to a valid index in a
route of waypointCount waypoints. BlueSky initializes iactwp to -1
("no active waypoint yet"), and its own GUI clamps the received value to
[0, waypointCount - 1] (bluesky/ui/qtgl/gltraffic.py); mirroring that
keeps WebATM's renderers consistent with the reference client and with
each other.
Parameters¶
iactwp¶
number | undefined
waypointCount¶
number
Returns¶
number