Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active September 5, 2023 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcsee/9f7c55093672a63ec8c89ca24b9a7277 to your computer and use it in GitHub Desktop.
Save mcsee/9f7c55093672a63ec8c89ca24b9a7277 to your computer and use it in GitHub Desktop.
<?
final class GeographicCoordinate {
function distanceTo(GeographicCoordinate $coordinate) { }
function pointInPolygon(Polygon $polygon) { }
}
// Now you are in geometry world (and not in the world of arrays anymore).
// You can safely do many exciting things.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment