Reference: Appendix B in Multibody Mechanics and Visualization by Harry Dankowicz, published by Springer Verlag UK, 2004.
Calling Sequence
MakeRotations(erms)
MakeRotations([erms1], ..., [ermsn])
MakeRotations(rm)
Parameters
erms,erms1, ..., ermsn: elementary rotation-matrix specifications
rm: rotation matrix
Description
The function MakeRotations returns a rotation matrix as specified by its arguments.
An elementary rotation-matrix specification comes in one of two forms, namely
- phi,i
- where phi is an algebraic expression and i equals 1, 2, or 3. This corresponds to a rotation by an angle phi about the i-th basis vector.
- phi,v1,v2,v3
- where phi, v1, v2, and v3 are algebraic expressions. This corresponds to a rotation by an angle phi about the vector whose coordinates equal v1, v2, and v3.
When invoked with multiple elementary rotation-matrix specifications, the MakeRotations procedure returns the matrix product of the individual rotation matrices specified by each of the elementary rotation-matrix specifications.
Examples
>MakeRotations(phi,1);
>MakeRotations([phi,2],[theta,1,1,0]);
See Also
|
|