diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2020-02-25 23:12:31 -0500 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2020-02-25 23:12:31 -0500 |
commit | 98350b34d1826e1d6687f18c45b0fbc6a3488742 (patch) | |
tree | af80185b5db866ad596f9791dc349a9a7e4256bd /euclidean.hpp | |
parent | a1c5f64f3c8c9812cb0b4658630f79dab1856c0c (diff) | |
download | space_wolff-98350b34d1826e1d6687f18c45b0fbc6a3488742.tar.gz space_wolff-98350b34d1826e1d6687f18c45b0fbc6a3488742.tar.bz2 space_wolff-98350b34d1826e1d6687f18c45b0fbc6a3488742.zip |
More fixes on new features
Diffstat (limited to 'euclidean.hpp')
-rw-r--r-- | euclidean.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/euclidean.hpp b/euclidean.hpp index f0e54d4..acf65ac 100644 --- a/euclidean.hpp +++ b/euclidean.hpp @@ -56,7 +56,8 @@ public: Euclidean(const Affine<T, D>& a) : Affine<T, D>(a) {} Euclidean(Vector<T, D> t0, Matrix<T, D> r0) : Affine<T, D>(t0, r0) {} - Euclidean act(const Euclidean& t) const { return Affine<T, D>::actA(t); }; + Euclidean act(const Euclidean& t) const { return Euclidean(Affine<T, D>::actA(t)); }; + Euclidean inverse() const { return Euclidean(Affine<T, D>::inverse()); } using Affine<T, D>::act; }; @@ -78,8 +79,8 @@ protected: public: TorusGroup(T L) : Affine<T, D>(), L(L) {} - TorusGroup(T L, Vector<T, D> t0, Matrix<T, D> r0) : Affine<T, D>(), L(L) {} TorusGroup(T L, const Affine<T, D>& t) : Affine<T, D>(t), L(L) {} + TorusGroup(T L, Vector<T, D> t0, Matrix<T, D> r0) : Affine<T, D>(t0, r0), L(L) {} TorusGroup act(const TorusGroup& t) const { return TorusGroup(L, Affine<T, D>::actA(t)); } TorusGroup inverse() const { return TorusGroup(L, Affine<T, D>::inverse()); } |