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;
64 return Coordinate{coord.x * DEG_TO_RAD<T>, coord.y * DEG_TO_RAD<T>};
73 CUPROJ_HOST_DEVICE Coordinate inverse(Coordinate
const& coord)
const
75 using T =
typename Coordinate::value_type;
76 return Coordinate{coord.x * RAD_TO_DEG<T>, coord.y * RAD_TO_DEG<T>};