summaryrefslogtreecommitdiff
path: root/ucoo/math/yaw_pitch_roll.tcc
diff options
context:
space:
mode:
authorNicolas Schodet2015-10-26 13:19:01 +0100
committerNicolas Schodet2019-10-07 00:44:50 +0200
commit5487719b70fa89fdffae413b2d00f2a928cfc2a7 (patch)
tree3302797031138116df0fc86fe6f0b7db4e9ed9b4 /ucoo/math/yaw_pitch_roll.tcc
parent9b163537e83eea2c65358135dc180e7bf2da1a51 (diff)
ucoo/math: add quaternion for vector rotation
Diffstat (limited to 'ucoo/math/yaw_pitch_roll.tcc')
-rw-r--r--ucoo/math/yaw_pitch_roll.tcc44
1 files changed, 44 insertions, 0 deletions
diff --git a/ucoo/math/yaw_pitch_roll.tcc b/ucoo/math/yaw_pitch_roll.tcc
new file mode 100644
index 0000000..e2b8764
--- /dev/null
+++ b/ucoo/math/yaw_pitch_roll.tcc
@@ -0,0 +1,44 @@
+#ifndef ucoo_math_yaw_pitch_roll_tcc
+#define ucoo_math_yaw_pitch_roll_tcc
+// ucoolib - Microcontroller object oriented library. {{{
+//
+// Copyright (C) 2015 Nicolas Schodet
+//
+// Permission is hereby granted, free of charge, to any person obtaining a
+// copy of this software and associated documentation files (the "Software"),
+// to deal in the Software without restriction, including without limitation
+// the rights to use, copy, modify, merge, publish, distribute, sublicense,
+// and/or sell copies of the Software, and to permit persons to whom the
+// Software is furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+// DEALINGS IN THE SOFTWARE.
+//
+// }}}
+
+namespace ucoo {
+
+template<typename T>
+constexpr
+YawPitchRoll<T>::YawPitchRoll ()
+{
+}
+
+template<typename T>
+constexpr
+YawPitchRoll<T>::YawPitchRoll (T yaw_, T pitch_, T roll_)
+ : yaw (yaw_), pitch (pitch_), roll (roll_)
+{
+}
+
+} // namespace ucoo
+
+#endif // ucoo_math_yaw_pitch_roll_tcc