diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/transf_mat_3x4.cpp | 8 | ||||
| -rw-r--r-- | src/transf_mat_3x4.h | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/transf_mat_3x4.cpp b/src/transf_mat_3x4.cpp index a624fb163..ec03b0de6 100644 --- a/src/transf_mat_3x4.cpp +++ b/src/transf_mat_3x4.cpp @@ -165,6 +165,14 @@ TransfMat3x4::operator*=(NR::Matrix const &A) { return *this; } +void +TransfMat3x4::copy_tmat(double rhs[3][4]) { + for (int i = 0; i < 3; ++i) { + for (int j = 0; j < 4; ++j) { + rhs[i][j] = tmat[i][j]; + } + } +} void TransfMat3x4::print () const { diff --git a/src/transf_mat_3x4.h b/src/transf_mat_3x4.h index 549db1c93..58d332cb9 100644 --- a/src/transf_mat_3x4.h +++ b/src/transf_mat_3x4.h @@ -12,9 +12,9 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ +#include "libnr/nr-point-fns.h" #include "proj_pt.h" #include "axis-manip.h" -#include "libnr/nr-point-fns.h" namespace Proj { @@ -53,6 +53,8 @@ public: void print() const; + void copy_tmat(double rhs[3][4]); + private: // FIXME: Is changing a single column allowed when a projective coordinate system is specified!?!?! void normalize_column (Proj::Axis axis); |
