Go to the documentation of this file.
24 #define XSVECTOR_INITIALIZER \
71 inline int flags() {
return m_flags; }
198 inline XsReal cartesianLength()
const
208 inline XsVector& angularVelocityFromQuaternion(
242 inline std::vector<XsReal> toVector()
const
244 std::vector<XsReal> tmp(
m_size);
272 #ifndef XSENS_NO_PACK
XSCPPPROTECTED XsReal *const m_data
Points to contained data buffer.
XSTYPES_DLL_API int XsVector_empty(const XsVector *thisPtr)
TColor operator+(const TColor &first, const TColor &second)
Pairwise addition of their corresponding RGBA members.
XSTYPES_DLL_API void XsVector_swap(XsVector *a, XsVector *b)
VALUE & operator[](const KEY &key)
Write/read via [i] operator, that creates an element if it didn't exist already.
CONTAINER1::Scalar dotProduct(const CONTAINER1 &v1, const CONTAINER1 &v2)
v1*v2: The dot product of two containers (vectors/arrays/matrices)
XSTYPES_DLL_API void XsVector_copy(XsVector *copy, XsVector const *src)
XSTYPES_DLL_API void XsVector_setZero(XsVector *thisPtr)
XSTYPES_DLL_API void XsVector_assign(XsVector *thisPtr, XsSize sz, const XsReal *src)
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
XSTYPES_DLL_API int XsVector_equal(const XsVector *thisPtr, const XsVector *thatPtr)
XSTYPES_DLL_API XsReal XsVector_cartesianLength(const XsVector *thisPtr)
TColor operator-(const TColor &first, const TColor &second)
Pairwise substraction of their corresponding RGBA members.
GLsizei GLsizei GLenum GLenum const GLvoid * data
XSTYPES_DLL_API void XsVector_fill(XsVector *thisPtr, XsReal value)
double XsReal
Defines the floating point type used by the Xsens libraries.
XSTYPES_DLL_API void XsVector_multiplyScalar(const XsVector *thisPtr, XsReal scalar, XsVector *dest)
size_t XsSize
XsSize must be unsigned number!
XSTYPES_DLL_API XsReal XsVector_dotProduct(const XsVector *a, const XsVector *b)
const XsSize m_size
Size of contained data buffer in elements.
EIGEN_STRONG_INLINE void setSize(size_t row, size_t col)
Changes the size of matrix, maintaining its previous content as possible and padding with zeros where...
EIGEN_STRONG_INLINE void assign(const Scalar v)
const int m_flags
Flags for data management.
XSTYPES_DLL_API void XsVector_construct(XsVector *thisPtr, XsSize sz, const XsReal *src)
XSTYPES_DLL_API void XsVector_ref(XsVector *thisPtr, XsSize sz, XsReal *buffer, XsDataFlags flags)
const XSTYPES_DLL_API XsReal XsMath_zero
std::vector< T1 > operator*(const std::vector< T1 > &a, const std::vector< T2 > &b)
a*b (element-wise multiplication)
GLsizei const GLfloat * value
XsDataFlags
These flags define the behaviour of data contained by Xsens data structures.
EIGEN_STRONG_INLINE bool empty() const
std::vector< T1 > & operator*=(std::vector< T1 > &a, const std::vector< T2 > &b)
a*=b (element-wise multiplication)
EIGEN_STRONG_INLINE void fill(const Scalar v)
XSTYPES_DLL_API void XsVector_angularVelocityFromQuaternion(XsVector *thisPtr, XsReal deltaT, const struct XsQuaternion *quat)
XSTYPES_DLL_API void XsVector_destruct(XsVector *thisPtr)
GLubyte GLubyte GLubyte a
void memcpy(void *dest, size_t destSize, const void *src, size_t copyCount) noexcept
An OS and compiler independent version of "memcpy".
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 | |