-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
geogfn: apply bounding box calculations for DWithin #50825
Conversation
d4c2ff4
to
ea4b673
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r1.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @otan)
pkg/geo/geogfn/dwithin.go, line 35 at r1 (raw file):
} distanceToExpand := s1.Angle(distance / spheroid.SphereRadius)
how about s/distanceToExpand/angleToExpand/
ea4b673
to
5907d3c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @sumeerbhola)
pkg/geo/geogfn/dwithin.go, line 35 at r1 (raw file):
Previously, sumeerbhola wrote…
how about s/distanceToExpand/angleToExpand/
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @sumeerbhola)
5907d3c
to
5987119
Compare
Expand a BoundingRect by a given radius (using s2.Cap) and apply intersection to do fairly cheap bounding box calculations before doing the expensive DWithin logic. Release note: None
5987119
to
51ddf02
Compare
bors r=sumeerbhola |
Build succeeded |
Expand a BoundingRect by a given radius (using s2.Cap) and apply
intersection to do fairly cheap bounding box calculations before doing
the expensive DWithin logic.
Release note: None