20#include <cuproj/detail/utility/cuda.hpp>
35template <
typename Coordinate>
48 if (dir == direction::FORWARD)
49 return forward(coord);
51 return inverse(coord);
61 CUPROJ_HOST_DEVICE Coordinate forward(Coordinate
const& coord)
const
63 using T =
typename Coordinate::value_type;
73 CUPROJ_HOST_DEVICE Coordinate inverse(Coordinate
const& coord)
const
75 using T =
typename Coordinate::value_type;
Converts degrees to radians and vice versa.
CUPROJ_HOST_DEVICE Coordinate operator()(Coordinate const &coord, direction dir) const
Converts degrees to radians and vice versa.
Base class for all transform operations.
constexpr T DEG_TO_RAD
Conversion factor from degrees to radians.
constexpr T RAD_TO_DEG
Conversion factor from radians to degrees.
direction
Enumerates the direction of a transform operation.