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

Add PolyUtil.containsLocation(). #11

Merged
merged 2 commits into from
Aug 12, 2013
Merged

Add PolyUtil.containsLocation(). #11

merged 2 commits into from
Aug 12, 2013

Conversation

preda
Copy link

@preda preda commented Aug 12, 2013

No description provided.

* Returns true if the vertical segment (lat3, lng3) to South Pole intersects the segment
* (lat1, lng1) to (lat2, lng2).
*/
static boolean Intersects(double lat1, double lat2, double lng2, double lat3, double lng3,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would phrase the JavaDoc like this:
Computes whether the vertical segment (lat3, lng3) to South Pole intersects the segment (lat1, lng1) to (lat2, lng2).
Longitudes are offset by -lng1...

Also, lowercase the method (intersects)

@broady
Copy link
Contributor

broady commented Aug 12, 2013

LGTM, just the one comment on JavaDoc.

broady added a commit that referenced this pull request Aug 12, 2013
Add PolyUtil.containsLocation().
@broady broady merged commit 0db5ebc into googlemaps:master Aug 12, 2013
@broady
Copy link
Contributor

broady commented Aug 12, 2013

Thank you, @preda!

broady added a commit that referenced this pull request Feb 11, 2014
Changed datasets, Tidying up
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

Successfully merging this pull request may close these issues.

2 participants