summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/object.cpp
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-01 04:45:00 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-01 04:45:00 +0000
commite701e589c6a8bc4dd25d6c3e42947b83b09c24dd (patch)
treeab5bf2df0a9ce16c395e55dffdfabc5fc3f2aa9b /libdimensionxx/object.cpp
parente957408cb8cd200696a081b4f5c749c5294110ec (diff)
downloaddimension-e701e589c6a8bc4dd25d6c3e42947b83b09c24dd.tar.xz
Wrap objects' transformation matricies in C++.
Diffstat (limited to 'libdimensionxx/object.cpp')
-rw-r--r--libdimensionxx/object.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/libdimensionxx/object.cpp b/libdimensionxx/object.cpp
index 61a887c..7d66206 100644
--- a/libdimensionxx/object.cpp
+++ b/libdimensionxx/object.cpp
@@ -26,6 +26,18 @@ namespace Dimension
Object::~Object()
{ }
+ Matrix
+ Object::trans()
+ {
+ return Matrix(m_object->trans);
+ }
+
+ void
+ Object::trans(const Matrix& trans)
+ {
+ m_object->trans = trans.dmnsn();
+ }
+
// Intersection list for the line l
Array<double>
Object::intersections(const Line& l)