<< quaternion2rot_matrix SIP - Scilab Image Processing Toolbox quaternion_multiply >>

SIP - Scilab Image Processing Toolbox >> SIP - Scilab Image Processing Toolbox > quaternion_matrix

quaternion_matrix

Generates quaternion multiplication matrix

Calling Sequence

PM = quaternion_matrix(p)

Parameters

p
4 element vector representing the quaternion.
PM
4x4 multiplication matrix

Description

quaternion_matrix generates quaternion multiplication matrix.

PM = quaternion_matrix(q)
returns PM such that PM * q = quaternion_multiply(p,q).

Examples

q = rand(4,1);
p = rand(4,1);
// these two routines should give the same result:
quaternion_multiply(p,q)
quaternion_matrix(p) * q

Authors

Availability

The latest version of SIP can be found at

http://siptoolbox.sf.net

See Also


<< quaternion2rot_matrix SIP - Scilab Image Processing Toolbox quaternion_multiply >>