Navigation

Operators and Keywords

Function List:

C++ API

Subscripted assignment for quaternions. Used by Octave for "q.key = value".

Subscripts

q.w
Assign real-valued array val to scalar part w of quaternion q.
q.x, q.y, q.z
Assign real-valued array val to component x, y or z of the vector part of quaternion q.
q.s
Assign scalar part of quaternion val to scalar part of quaternion q. The vector part of q is left untouched.
q.v
Assign vector part of quaternion val to vector part of quaternion q. The scalar part of q is left untouched.
q(...)
Assign val to certain elements of quaternion array q, e.g. q(3, 2:end) = val.

Package: quaternion