libcuproj  24.02.00
Loading...
Searching...
No Matches
Public Member Functions | List of all members
cuproj::offset_scale_cartesian_coordinates< Coordinate, T > Class Template Reference

Given Cartesian coordinates (x, y) in meters, offset and scale them to the projection's origin and scale (ellipsoidal semi-major axis). More...

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

Public Member Functions

CUPROJ_HOST_DEVICE offset_scale_cartesian_coordinates (projection_parameters< T > const &params)
 Constructor.
 
CUPROJ_HOST_DEVICE Coordinate operator() (Coordinate const &coord, direction dir) const
 Offset and scale a single coordinate.
 

Detailed Description

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

Given Cartesian coordinates (x, y) in meters, offset and scale them to the projection's origin and scale (ellipsoidal semi-major axis).

Template Parameters
Coordinatecoordinate type
Tcoordinate value type

Definition at line 43 of file offset_scale_cartesian_coordinates.cuh.

Constructor & Destructor Documentation

◆ offset_scale_cartesian_coordinates()

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

Constructor.

Parameters
paramsprojection parameters, including the ellipsoid semi-major axis and the projection origin

Definition at line 51 of file offset_scale_cartesian_coordinates.cuh.

Member Function Documentation

◆ operator()()

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

Offset and scale a single coordinate.

Parameters
coordthe coordinate to offset and scale
dirthe direction of the operation, either forward or inverse
Returns
the offset and scaled coordinate

Definition at line 63 of file offset_scale_cartesian_coordinates.cuh.


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