2 // SPDX-License-Identifier: BSD-3-Clause
3 // Copyright Contributors to the OpenEXR Project.
8 #ifndef _PyImathQuatOperators_h_
9 #define _PyImathQuatOperators_h_
11 #include <ImathQuat.h>
17 static inline typename T::BaseType apply (const T &self, const T &qB)
18 { return self.euclideanInnerProduct (qB); }
22 struct op_quatNormalize {
23 static inline void apply (T &self)
28 struct op_quatNormalized {
29 static inline T apply (const T &self)
30 { return self.normalized(); }
35 static inline T apply (const T &self, const T &qB, const typename T::BaseType t)
36 { return Imath::slerpShortestArc (self, qB, t); }
40 } // namespace PyImath
42 #endif // _PyImathQuatOperators_h_