summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/dimensionxx
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/dimensionxx
parente957408cb8cd200696a081b4f5c749c5294110ec (diff)
downloaddimension-e701e589c6a8bc4dd25d6c3e42947b83b09c24dd.tar.xz
Wrap objects' transformation matricies in C++.
Diffstat (limited to 'libdimensionxx/dimensionxx')
-rw-r--r--libdimensionxx/dimensionxx/object.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdimensionxx/dimensionxx/object.hpp b/libdimensionxx/dimensionxx/object.hpp
index 6eaca83..af9bbcd 100644
--- a/libdimensionxx/dimensionxx/object.hpp
+++ b/libdimensionxx/dimensionxx/object.hpp
@@ -32,6 +32,11 @@ namespace Dimension
// No-op, made pure virtual
virtual ~Object() = 0;
+ // Get/set the transformation matrix
+ Matrix trans();
+ void trans(const Matrix& trans);
+
+ // Object callbacks
virtual Array<double> intersections(const Line& l);
virtual bool inside(const Vector& point);