Go to the documentation of this file.
10 #define XSQUATERNION_H
22 #define XSQUATERNION_INITIALIZER \
26 XsMath_zero, XsMath_zero, XsMath_zero, XsMath_zero \
XsReal m_w
Stores the w component of the quaternion.
XSTYPES_DLL_API void XsQuaternion_multiply(const XsQuaternion *left, const XsQuaternion *right, XsQuaternion *dest)
GLdouble GLdouble GLdouble GLdouble q
VALUE & operator[](const KEY &key)
Write/read via [i] operator, that creates an element if it didn't exist already.
XSTYPES_DLL_API void XsQuaternion_fromEulerAngles(XsQuaternion *thisPtr, const struct XsEuler *src)
XsReal m_z
Stores the z component of the quaternion.
XsReal m_x
Stores the x component of the quaternion.
GLubyte GLubyte GLubyte GLubyte w
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
const XSTYPES_DLL_API XsQuaternion * XsQuaternion_identity(void)
XSTYPES_DLL_API void XsQuaternion_destruct(XsQuaternion *thisPtr)
XSTYPES_DLL_API void XsQuaternion_inverse(const XsQuaternion *thisPtr, XsQuaternion *dest)
XSTYPES_DLL_API void XsQuaternion_swap(XsQuaternion *a, XsQuaternion *b)
TColor operator-(const TColor &first, const TColor &second)
Pairwise substraction of their corresponding RGBA members.
XSTYPES_DLL_API XsReal XsQuaternion_normalized(const XsQuaternion *thisPtr, XsQuaternion *dest)
GLsizei GLsizei GLenum GLenum const GLvoid * data
void normalize(Scalar valMin, Scalar valMax)
Scales all elements such as the minimum & maximum values are shifted to the given values.
struct XsQuaternion XsQuaternion
double XsReal
Defines the floating point type used by the Xsens libraries.
XSTYPES_DLL_API void XsQuaternion_fromRotationMatrix(XsQuaternion *thisPtr, const struct XsMatrix *ori)
GLboolean GLenum GLenum GLvoid * values
size_t XsSize
XsSize must be unsigned number!
XSTYPES_DLL_API int XsQuaternion_equal(XsQuaternion const *a, XsQuaternion const *b)
Eigen::Matrix< dataType, 4, 4 > inverse(Eigen::Matrix< dataType, 4, 4 > &pose)
XSTYPES_DLL_API void XsQuaternion_copy(XsQuaternion *copy, XsQuaternion const *src)
XSTYPES_DLL_API XsReal XsQuaternion_normalize(XsQuaternion *thisPtr)
EIGEN_STRONG_INLINE void assign(const Scalar v)
XsReal m_data[4]
Stores the quaternion in an array of four elements.
const XSTYPES_DLL_API XsReal XsMath_zero
GLint GLenum GLboolean normalized
std::vector< T1 > operator*(const std::vector< T1 > &a, const std::vector< T2 > &b)
a*b (element-wise multiplication)
XSTYPES_DLL_API int XsQuaternion_empty(const XsQuaternion *thisPtr)
XsReal m_y
Stores the y component of the quaternion.
EIGEN_STRONG_INLINE bool empty() const
std::vector< T1 > & operator*=(std::vector< T1 > &a, const std::vector< T2 > &b)
a*=b (element-wise multiplication)
GLubyte GLubyte GLubyte a
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |