加载中...
搜索中...
无匹配项
point_in_polygon.cuh
前往该文件的文档。
1/*
2 * 版权所有 (c) 2022, NVIDIA CORPORATION。
3 *
4 * 根据 Apache 许可证 2.0 版获得许可(“许可证”);
5 * 除非遵守本许可证的规定,否则您不得使用此文件。
6 * 您可以获取一份许可证的副本:
7 *
8 * https://apache.ac.cn/licenses/LICENSE-2.0
9 *
10 * 除非适用法律要求或书面同意,否则软件
11 * 根据许可证以“原样”分发,
12 * 不附带任何明示或默示的保证或条件。
13 * 有关管理权限和
14 * 许可证下限制的特定语言,请参见许可证。
15 */
16
17#pragma once
18
19#include <rmm/cuda_stream_view.hpp>
20
21namespace cuspatial {
22
27
78template <class PointRange, class PolygonRange, class OutputIt>
79OutputIt point_in_polygon(PointRange points,
80 PolygonRange polygons,
81 OutputIt output,
82 rmm::cuda_stream_view stream = rmm::cuda_stream_default);
83
130template <typename PointRange, typename PolygonRange, typename OutputIt>
131OutputIt pairwise_point_in_polygon(PointRange points,
132 PolygonRange polygons,
133 OutputIt results,
134 rmm::cuda_stream_view stream = rmm::cuda_stream_default);
135
139
140} // namespace cuspatial
141
142#include <cuspatial/detail/point_in_polygon.cuh>
OutputIt pairwise_point_in_polygon(PointRange points, PolygonRange polygons, OutputIt results, rmm::cuda_stream_view stream=rmm::cuda_stream_default)
给定 (点, 多边形) 对,测试对中的点是否在该对的多边形内。
OutputIt point_in_polygon(PointRange points, PolygonRange polygons, OutputIt output, rmm::cuda_stream_view stream=rmm::cuda_stream_default)
测试指定的点是否在任何指定的多边形内部。