Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point directions #90

Open
nilshoerrmann opened this issue Jun 1, 2022 · 0 comments
Open

Point directions #90

nilshoerrmann opened this issue Jun 1, 2022 · 0 comments

Comments

@nilshoerrmann
Copy link
Contributor

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant