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

Report where in a quad a point is located. #635

Merged
merged 3 commits into from
Oct 27, 2016
Merged

Report where in a quad a point is located. #635

merged 3 commits into from
Oct 27, 2016

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Oct 25, 2016

When a point search is performed on a quad feature, in addition to determining if the point is in a quad, determine where it is within the quad.

When a point search is performed on a quad feature, in addition to determining if the point is in a quad, determine where it is within the quad.
@codecov-io
Copy link

codecov-io commented Oct 25, 2016

Current coverage is 86.54% (diff: 100%)

Merging #635 into master will increase coverage by 0.01%

@@             master       #635   diff @@
==========================================
  Files            85         85          
  Lines          8328       8340    +12   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           7206       7218    +12   
  Misses         1122       1122          
  Partials          0          0          

Powered by Codecov. Last update 6861609...4b1c4fd

@manthey manthey mentioned this pull request Oct 27, 2016
Copy link
Member

@aashish24 aashish24 left a comment

Choose a reason for hiding this comment

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

LGTM if we can add some comments

@@ -161,12 +163,27 @@ var quadFeature = function (arg) {
util.pointInPolygon(coordinate, poly2)) {
indices.push(quad.idx);
found.push(data[quad.idx]);
coordbasis = util.pointTo2DTriangleBasis(
coordinate, poly1[0], poly1[1], poly1[2]);
if (!coordbasis || coordbasis.x + coordbasis.y > 1) {
Copy link
Member

Choose a reason for hiding this comment

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

some extra comments would be useful here

@manthey manthey merged commit 6c9cd90 into master Oct 27, 2016
@manthey manthey deleted the quad-location branch October 27, 2016 20:43
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.

3 participants