toPoint2D

Extract 2D Cartesian coordinates from any LocationIfc that has them. Returns null for locations whose underlying spatial model does not have a 2D Cartesian representation (DistancesModel.Location — just a name; GreatCircleBasedSpatialModel.GPSCoordinate — spherical geometry, not directly Cartesian).

Use case: an entity is at a LocationIfc and code wants to query an agent-layer projection's neighbors at the same point — space.within(loc.toPoint2D()!!, radius).