Rerun C++ SDK
|
Datatype: A Quaternion represented by 4 real numbers. More...
#include <rerun/datatypes/quaternion.hpp>
Public Member Functions | |
float | x () const |
float | y () const |
float | z () const |
float | w () const |
Static Public Member Functions | |
static Quaternion | from_xyzw (float x, float y, float z, float w) |
Construct Quaternion from x/y/z/w values. | |
static Quaternion | from_wxyz (float w, float x, float y, float z) |
Construct Quaternion from w/x/y/z values. | |
static Quaternion | from_xyzw (std::array< float, 4 > xyzw_) |
Construct Quaternion from x/y/z/w array. | |
static Quaternion | from_wxyz (std::array< float, 4 > wxyz_) |
Construct Quaternion from w/x/y/z array. | |
static Quaternion | from_xyzw (const float *xyzw_) |
Construct Quaternion from x/y/z/w float pointer. | |
static Quaternion | from_wxyz (const float *wxyz_) |
Construct Quaternion from w/x/y/z float pointer. | |
Public Attributes | |
std::array< float, 4 > | xyzw |
Static Public Attributes | |
static const Quaternion | IDENTITY |
Datatype: A Quaternion represented by 4 real numbers.
Note: although the x,y,z,w components of the quaternion will be passed through to the datastore as provided, when used in the viewer Quaternions will always be normalized.