A class that represents a vector of real numbers. More...
#include <xsvector.h>
Protected Attributes | |
XSCPPPROTECTED XsReal *const | m_data |
Points to contained data buffer. More... | |
const XsSize | m_flags |
Flags for data management. More... | |
const XsSize | m_size |
Size of contained data buffer in elements. More... | |
Related Functions | |
(Note that these are not member functions.) | |
void | XsVector_angularVelocityFromQuaternion (XsVector *thisPtr, XsReal deltaT, const XsQuaternion *quat) |
Get an effective angular velocity from the quaternion, which must represent a delta angle. More... | |
void | XsVector_assign (XsVector *thisPtr, XsSize sz, const XsReal *src) |
Initialize the XsVector using sz number of items from src. More... | |
XsReal | XsVector_cartesianLength (const XsVector *thisPtr) |
Compute and return the cartesian length. More... | |
int | XsVector_compare (const struct XsVector *thisPtr, const struct XsVector *thatPtr, XsReal epsilon) |
Returns non-zero if the two vectors are equal within epsilon. More... | |
void | XsVector_construct (XsVector *thisPtr, XsSize sz, const XsReal *src) |
Initialize the XsVector using sz number of items from src. More... | |
void | XsVector_copy (XsVector *copy, XsVector const *src) |
Copy the contents of the XsVector to copy. More... | |
void | XsVector_destruct (XsVector *thisPtr) |
Release and clear the contents of the vector. More... | |
XsReal | XsVector_dotProduct (const XsVector *a, const XsVector *b) |
Compute and return the dot product of XsVectors a and b. More... | |
int | XsVector_empty (const XsVector *thisPtr) |
Returns a non-zero value if the XsVector does not contain any values. More... | |
int | XsVector_equal (const struct XsVector *a, const struct XsVector *b) |
Returns non-zero when the two vectors are identical. More... | |
void | XsVector_fill (struct XsVector *thisPtr, XsReal value) |
Sets all elements of the XsVector to value. More... | |
void | XsVector_multiplyScalar (const XsVector *thisPtr, XsReal scalar, XsVector *dest) |
Multiplies all values in this XsVector by scalar and puts the result in XsVector dest. More... | |
void | XsVector_normalize (XsVector *thisPtr) |
Normalize the vector. More... | |
void | XsVector_ref (XsVector *thisPtr, XsSize sz, XsReal *buffer, XsDataFlags flags) |
Initialize the XsVector to refer to the supplied buffer. More... | |
void | XsVector_setZero (XsVector *thisPtr) |
Sets all elements of the XsVector to 0. More... | |
void | XsVector_swap (XsVector *a, XsVector *b) |
Swap the contents of a and b. More... | |
A class that represents a vector of real numbers.
Definition at line 113 of file xsvector.h.
|
protected |
Points to contained data buffer.
Definition at line 116 of file xsvector.h.
|
protected |
Flags for data management.
Definition at line 118 of file xsvector.h.
|
protected |
Size of contained data buffer in elements.
Definition at line 117 of file xsvector.h.