Loading...
Searching...
No Matches
cuproj::clamp_angular_coordinates< Coordinate, T > Class Template Reference

Clamp angular coordinates to the valid range and offset by the central meridian (lam0) and an optional prime meridian offset. More...

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

Public Member Functions

CUPROJ_HOST_DEVICE clamp_angular_coordinates (projection_parameters< T > const &params)
 Construct a new clamp angular coordinates object.
 
CUPROJ_HOST_DEVICE Coordinate operator() (Coordinate const &coord, direction dir) const
 Clamp angular coordinate to the valid range.
 

Detailed Description

template<typename Coordinate, typename T = typename Coordinate::value_type>
class cuproj::clamp_angular_coordinates< Coordinate, T >

Clamp angular coordinates to the valid range and offset by the central meridian (lam0) and an optional prime meridian offset.

Template Parameters
Coordinatethe coordinate type
Tthe coordinate value type

Definition at line 44 of file clamp_angular_coordinates.cuh.

Constructor & Destructor Documentation

◆ clamp_angular_coordinates()

template<typename Coordinate , typename T = typename Coordinate::value_type>
CUPROJ_HOST_DEVICE cuproj::clamp_angular_coordinates< Coordinate, T >::clamp_angular_coordinates ( projection_parameters< T > const & params)
inline

Construct a new clamp angular coordinates object.

Parameters
paramsthe projection parameters

Definition at line 51 of file clamp_angular_coordinates.cuh.

Member Function Documentation

◆ operator()()

template<typename Coordinate , typename T = typename Coordinate::value_type>
CUPROJ_HOST_DEVICE Coordinate cuproj::clamp_angular_coordinates< Coordinate, T >::operator() ( Coordinate const & coord,
direction dir ) const
inline

Clamp angular coordinate to the valid range.

Parameters
coordThe coordinate to clamp
dirThe direction of the operation
Returns
The clamped coordinate

Definition at line 65 of file clamp_angular_coordinates.cuh.


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