phpgeo icon indicating copy to clipboard operation
phpgeo copied to clipboard

Point directions

Open nilshoerrmann opened this issue 3 years ago • 0 comments

This library provides a class to calculate relative directions between two points (cardinal direction). I don't know about the history of this feature but from a user point of view, it would be handy if this was an integrated method of a point (formerly coordinate):

$point1->isNorthOf($point2); // returns true/false
$point1->directionOf($point2); // returns 'north|south|west|east'

nilshoerrmann avatar Jun 01 '22 13:06 nilshoerrmann