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 |