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

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

quaternion_multiply

Multiplication of two quaternions

Calling Sequence

r_times_q = quaternion_multiply(r,q)

Parameters

r,q
4 element vectors representing the quaternions to be multiplied.
q_times_q
4 element vector representing the quaternion r*q

Description

quaternion_multiply multiplies two quaternions.

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


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