diff options
Diffstat (limited to 'src/math/axis.cc')
-rw-r--r-- | src/math/axis.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/math/axis.cc b/src/math/axis.cc index 3c11de1..f7a1eec 100644 --- a/src/math/axis.cc +++ b/src/math/axis.cc @@ -107,6 +107,15 @@ Axis Axis::transpose() const return t; } +Axis Axis::operator*(const Axis &other) +{ + Axis t; + for (size_t i = 0; i < 3; i++) + t.axis_vector[i] = (*this) * other.axis_vector[i]; + + return t; +} + // write an axis to a std::ostream std::ostream &operator<<(std::ostream & os, Axis const & axis) { |