libcuproj
24.04.00
|
Base class for all transform operations. More...
Public Member Functions | |
CUPROJ_HOST_DEVICE Coordinate | operator() (Coordinate const &c, direction dir) const |
Applies the transform operation to a coordinate. | |
projection_parameters< T > | setup (projection_parameters< T > const ¶ms) |
Modifies the projection parameters for the transform operation. | |
Base class for all transform operations.
This class is used to define the interface for all transform operations. A transform operation is a function object that takes a coordinate and returns a coordinate. Operations are composed together to form a transform pipeline by cuproj::projection.
Coordinate | |
Coordinate::value_type |
Definition at line 63 of file operation.cuh.
|
inline |
Applies the transform operation to a coordinate.
c | Coordinate to transform |
dir | Direction of transform |
Definition at line 72 of file operation.cuh.
|
inline |
Modifies the projection parameters for the transform operation.
Some (but not all) operations require additional parameters to be set in the projection_params object. This function is called by cuproj::projection::setup() to allow the operation to modify the parameters as needed.
The final project_parameters are passed to every operation in the transform pipeline.
params | Projection parameters |
Definition at line 86 of file operation.cuh.