Navigation

Operators and Keywords

Function List:

C++ API

Subscripted reference for quaternions. Used by Octave for "q.w".

Subscripts

q.w
Return scalar part w of quaternion q as a built-in type.
q.x, q.y, q.z
Return component x, y or z of the vector part of quaternion q as a built-in type.
q.s
Return scalar part of quaternion q. The vector part of q is set to zero.
q.v
Return vector part of quaternion q. The scalar part of q is set to zero.
q(...)
Extract certain elements of quaternion array q, e.g. q(3, 2:end).

Package: quaternion