quat_arith | R Documentation |
Quaternions can be multiplied and conjugated. This can be done with vectors of type 'quat' or with numeric vectors of reasonable lengths.
## S3 method for class 'dddr_quat' vec_arith(op, x, y, ...) ## Default S3 method: vec_arith.dddr_quat(op, x, y, ...) ## S3 method for class 'dddr_quat' vec_arith.dddr_quat(op, x, y, ...) ## S3 method for class 'dddr_quat' Conj(z)
op |
Arithmetic operation, i.e, '"*"' only |
x, y, z |
Operands |
... |
Unused; present for extensibility |
For multiplication, if a numeric vector is used, it can only be length 4. The entries of this vector are interpreted as 'w,x,y,z' values of a quaternion. Then, the created quaternion is broadcast across all elements of the original quaternion vector.
Note that quaternion multiplication is not communative.
vector3_math
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.