diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-01 04:45:00 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-01 04:45:00 +0000 |
commit | e701e589c6a8bc4dd25d6c3e42947b83b09c24dd (patch) | |
tree | ab5bf2df0a9ce16c395e55dffdfabc5fc3f2aa9b /libdimensionxx/object.cpp | |
parent | e957408cb8cd200696a081b4f5c749c5294110ec (diff) | |
download | dimension-e701e589c6a8bc4dd25d6c3e42947b83b09c24dd.tar.xz |
Wrap objects' transformation matricies in C++.
Diffstat (limited to 'libdimensionxx/object.cpp')
-rw-r--r-- | libdimensionxx/object.cpp | 12 |
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) |