This Xcos block allows to rotate N 3-dimensional vectors.
This Xcos block allows to rotate N 3-dimensional vectors. Vectors are provided to the second input of the block as 3xN dimensional matrix. Rotation is given in form of the quaternion defined as 4x1 vector [r; i; j; k], where r is the scalar parameter, and [i; j; k] are the imaginary vector parameters. Output is calcuated by performing quaternion rotation of input vectors. Quaternion rotation is performed according to equation: v' = q * v * q^-1, where q is the quaternion, v input vector and v' output vector.
Input: 4x1 double (considered as quaternion parameters, first one being the real part, and remaining three imaginary vector part)
Input: 3xN double (considered as set of N 3-dimensional vectors that should be rotated)
Output: 3xN double (considered as set of N 3-dimensional output vectors)
This block has no dialog box.
This block has no cofigurable properties.
macros/VECTOR_ROTATE.sci
macros/AB_rot_rotVector.sci
ROTATION_JACOBIAN - Aerospace Blockset block used to calculate jacobian of the transformation performed by VECTOR_ROTATE block.