Loading...
Searching...
No Matches
Public Member Functions | List of all members
cuproj::degrees_to_radians< Coordinate > Class Template Reference

Converts degrees to radians and vice versa. More...

Inheritance diagram for cuproj::degrees_to_radians< Coordinate >:
cuproj::operation< Coordinate, T >

Public Member Functions

CUPROJ_HOST_DEVICE Coordinate operator() (Coordinate const &coord, direction dir) const
 Converts degrees to radians and vice versa.
 

Detailed Description

template<typename Coordinate>
class cuproj::degrees_to_radians< Coordinate >

Converts degrees to radians and vice versa.

Template Parameters
CoordinateThe coordinate type

Definition at line 36 of file degrees_to_radians.cuh.

Member Function Documentation

◆ operator()()

template<typename Coordinate >
CUPROJ_HOST_DEVICE Coordinate cuproj::degrees_to_radians< Coordinate >::operator() ( Coordinate const & coord,
direction dir ) const
inline

Converts degrees to radians and vice versa.

Parameters
coordThe coordinate to convert
dirThe direction of the conversion: FORWARD converts degrees to radians, INVERSE converts radians to degrees
Returns
The converted coordinate

Definition at line 46 of file degrees_to_radians.cuh.


The documentation for this class was generated from the following file: