summaryrefslogtreecommitdiff
path: root/ucoo/math/quaternion.hh
diff options
context:
space:
mode:
authorNicolas Schodet2015-12-23 10:52:43 +0100
committerNicolas Schodet2019-10-07 00:44:57 +0200
commitbd32e6457b51e4f3e94d6cd5af450695e97a36ef (patch)
tree09834a707674ebc135105900cd031cdd896346f2 /ucoo/math/quaternion.hh
parent5a0c96b930c0dc9b14caea2557779e9a7bad8dfe (diff)
ucoo/math: add quaternion multiplication
Diffstat (limited to 'ucoo/math/quaternion.hh')
-rw-r--r--ucoo/math/quaternion.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ucoo/math/quaternion.hh b/ucoo/math/quaternion.hh
index 5e60cde..556fa1f 100644
--- a/ucoo/math/quaternion.hh
+++ b/ucoo/math/quaternion.hh
@@ -48,6 +48,8 @@ struct Quaternion
T pitch () const;
/// Compute Roll.
T roll () const;
+ /// Multiply by another quaternion.
+ Quaternion<T> operator* (const Quaternion<T> &r) const;
};
} // namespace ucoo