amino
1.0-beta2
Lightweight Robot Utility Library
|
Memory layout for a quaternion, x,y,z,w order. More...
#include <type.h>
Public Attributes | |
union { | |
struct { | |
double x | |
x component | |
double y | |
y component | |
double z | |
z component | |
double w | |
w component | |
} | |
struct { | |
union { | |
struct aa_tf_vec3 vec | |
vector part | |
double v [3] | |
vector part | |
} | |
double scalar | |
scalar part | |
} | |
double data [4] | |
data array | |
}; | |
Memory layout for a quaternion, x,y,z,w order.
The first three elements are the vector (x,y,z). The last element is the scalar (w).