Skip to content

five-on-it / apps/client/src/ui/studio/missions / zoneCentre

Function: zoneCentre() ​

zoneCentre(game, zone): Pt | undefined

Defined in: apps/client/src/ui/studio/missions.ts:187

Where a zone stands on the map: its place, or its polygon's middle (the mean of its points).

Parameters ​

game ​

GameJson

zone ​

ZoneJson

Returns ​

Pt | undefined