Quaternion Function Reference

orthogonal

Construct a unit pure quaternion orthogonal to another

Syntax

U = orthogonal(V, W)

Description

orthogonal(V, W) constructs and returns a unit pure quaternion orthogonal to V, and W if given. V and W must be pure quaternions, but need not have unit modulus. W need not be orthogonal to V, but it must not be parallel. The function works for the complex quaternion case as well as for real quaternions.

Examples

>> orthogonal(qi, qj)
 
ans = 0 * I + 0 * J + 1 * K

© 2008-2013 Stephen J. Sangwine and Nicolas Le Bihan

License terms.