summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-04-02 12:10:32 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-04-02 12:10:32 +0000
commit2e39007842e1406e7df0031e425441c29eb060fd (patch)
treed14a9495a006491434b1c6d719969de0b403b6f7 /src
parentChange to the new Tango-compliant icon in the few places where the (diff)
downloadinkscape-2e39007842e1406e7df0031e425441c29eb060fd.tar.gz
inkscape-2e39007842e1406e7df0031e425441c29eb060fd.zip
Forgot adding files during last commit
(bzr r5312)
Diffstat (limited to 'src')
-rw-r--r--src/transf_mat_3x4.cpp8
-rw-r--r--src/transf_mat_3x4.h4
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);