HELP! * GREY=local LOCAL HTML version of Foils prepared 7 April 1997

Foil 12 SFMatrix and SFRotation

From Overview of VRML 1.0 Language with Examples CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96 and 97. by Geoffrey C. Fox, Alvin Leung, Meryem Ispirli * See also color IMAGE

SFMatrix -- A field containing a classic graphics 4 by 4 transformation matrix specifying 3 by 3 orthogonal transformation and a translation in 3 space. (Not in VRML2.0)
SFMatrices are written to file in row-major order as 16 floating point numbers separated by whitespace.
For example, a matrix expressing a translation of 7.3 units along the X axis is written as:
1 0 0 0 0 1 0 0 0 0 1 0 7.3 0 0 1
SFRotation -- A field containing an arbitrary rotation.
SFRotations are written to file as four floating point values separated by whitespace.
The 4 values represent an axis of rotation followed by the amount of right-handed rotation about that axis, in radians.
For example, a 180 degree rotation about the Y axis is:
0 1 0 3.14159265
x y z angle



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun May 25 1997