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

Create pairwise_point_in_polygon to be used by pairwise GeoSeries #750

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update cpp/include/cuspatial/experimental/detail/is_point_in_polygon.cuh
Co-authored-by: Michael Wang <isVoid@users.noreply.github.com>
  • Loading branch information
thomcom and isVoid authored Nov 29, 2022
commit 89169ee56714e93bbe7875a7544c8e2028ff1c73
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ __device__ inline bool is_point_in_polygon(Cart2d const& test_point,

// Points on the line segment are the same, so intersection is impossible.
// This is possible because we allow closed or unclosed polygons.
T zero = 0.0;
T constexpr zero = 0.0;
if (float_equal(run, zero) && float_equal(rise, zero)) continue;

T rise_to_point = test_point.y - a.y;
Expand Down