M-File Help: oa2r | View code for oa2r

# oa2r

Convert orientation and approach vectors to rotation matrix

R = oa2r(o, a) is a rotation matrix for the specified orientation and approach vectors (3x1) formed from 3 vectors such that R = [N o a] and N = o x a.

## Notes

- The submatrix is guaranteed to be orthonormal so long as O and A are not parallel.
- The vectors O and A are parallel to the Y- and Z-axes of the coordinate frame.

## See also

rpy2r, eul2r, oa2tr

© 1990-2014 Peter Corke.