"Universal" coordinate transformer, backed by PROJ
More...
#include <trafo.hpp>
|
| Transformer (const std::string &name="") |
| Constructor.
|
|
bool | Init (const std::string &source_crs, const std::string &target_crs) |
| Initialise transformer.
|
|
bool | Transform (Eigen::Vector3d &inout, const bool inv=false) |
| Transform coordinates.
|
|
bool | Transform (const Eigen::Vector3d &in, Eigen::Vector3d &out, const bool inv=false) |
| Transform coordinates.
|
|
bool | Transform (const Eigen::Vector4d &in, Eigen::Vector4d &out, const bool inv=false) |
| Transform coordinates (with time)
|
|
Transformer & | operator= (const Transformer &)=delete |
|
| Transformer (const Transformer &)=delete |
|
| Transformer (Transformer &&)=delete |
|
Transformer & | operator= (Transformer &&)=delete |
|
"Universal" coordinate transformer, backed by PROJ
Definition at line 208 of file trafo.hpp.
◆ Transformer()
fpsdk::common::trafo::Transformer::Transformer |
( |
const std::string & | name = "" | ) |
|
Constructor.
- Parameters
-
[in] | name | Optional name, for debugging |
◆ Init()
bool fpsdk::common::trafo::Transformer::Init |
( |
const std::string & | source_crs, |
|
|
const std::string & | target_crs ) |
◆ Transform() [1/3]
bool fpsdk::common::trafo::Transformer::Transform |
( |
Eigen::Vector3d & | inout, |
|
|
const bool | inv = false ) |
Transform coordinates.
- Parameters
-
[in,out] | inout | Coordinates to transform, will be replaced with result |
[in] | inv | Do the inverse transformation (true), default is forward (false) |
- Returns
- true on success, false otherwise
◆ Transform() [2/3]
bool fpsdk::common::trafo::Transformer::Transform |
( |
const Eigen::Vector3d & | in, |
|
|
Eigen::Vector3d & | out, |
|
|
const bool | inv = false ) |
Transform coordinates.
- Parameters
-
[in] | in | Coordinates to transform |
[out] | out | Transformed coordinates |
[in] | inv | Do the inverse transformation (true), default is forward (false) |
- Returns
- true on success, false otherwise
◆ Transform() [3/3]
bool fpsdk::common::trafo::Transformer::Transform |
( |
const Eigen::Vector4d & | in, |
|
|
Eigen::Vector4d & | out, |
|
|
const bool | inv = false ) |
Transform coordinates (with time)
- Parameters
-
[in] | in | Coordinates to transform (with time) |
[out] | out | Transformed coordinates (with time) |
[in] | inv | Do the inverse transformation (true), default is forward (false) |
- Returns
- true on success, false otherwise
The documentation for this class was generated from the following file: