加载中...
搜索中...
无匹配项
projection.cuh
前往此文件的文档页面。
1/*
2 * 版权所有 (c) 2022-2023, 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
20
21#include <rmm/cuda_stream_view.hpp>
22
23#include <iterator>
24
25namespace cuspatial {
26
31
65template <class InputIt, class OutputIt, class T>
66OutputIt sinusoidal_projection(InputIt lon_lat_first,
67 InputIt lon_lat_last,
68 OutputIt xy_first,
69 vec_2d<T> origin,
70 rmm::cuda_stream_view stream = rmm::cuda_stream_default);
71
76
77} // namespace cuspatial
78
79#include <cuspatial/detail/projection/sinusoidal_projection.cuh>
一个通用的二维向量类型。
OutputIt sinusoidal_projection(InputIt lon_lat_first, InputIt lon_lat_last, OutputIt xy_first, vec_2d< T > origin, rmm::cuda_stream_view stream=rmm::cuda_stream_default)
将相对于原点的经度/纬度正弦投影到笛卡尔 (x/y) 坐标(单位为公里)。