Navigation

Operators and Keywords

Function List:

C++ API

Function File: get (q)

Function File: value = get (q, "key")

Function File: [val1, val2, ...] = get (q, "key1", "key2", ...)

Access key values of quaternion objects.

Keys

w
Return scalar part w of quaternion q as a built-in type.
x, y, z
Return component x, y or z of the vector part of quaternion q as a built-in type.
s
Return scalar part of quaternion q. The vector part of q is set to zero.
v
Return vector part of quaternion q. The scalar part of q is set to zero.

Package: quaternion