From: cilix42 Date: Wed, 2 Apr 2008 12:10:32 +0000 (+0000) Subject: Forgot adding files during last commit X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=69b8ac78ffa843f6d6a55547ae392c4234286ff2;p=inkscape.git Forgot adding files during last commit --- 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);