Package Vrml2Sourcebook.Chapter06RotatingShapes
Rotations can transform the orientation of a shape in any direction.
Rotation orients a coordinate system about a rotation axis by a rotation angle measured in radians. To help remember positive and negative rotation directions: open your hand, stick out your thumb, aim your thumb in an axis positive direction, and curl your fingers around the axis. The curl direction is a positive rotation.
These X3D scenes are adapted directly from the original VRML 2.0 Sourcebook chapter examples. Also available: Introduction to VRML97 SIGGRAPH98 course notes.
This X3D VRML2 Sourcebook Chapter 06 RotatingShapes examples archive is online.
The X3D Java Scene Access Interface (x3djsail) package provides concrete classes for each X3D node and statement.
Online: X3D Java Scene Access Interface Library (X3DJSAIL) and X3DJSAIL Javadoc
- See Also:
-
ClassDescriptionRotating 45 degrees about X axis, with coordinate axes superimposed to show X3D/VRML directions.Rotating -45 degrees about X axis, with coordinate axes superimposed to show X3D/VRML directions.Rotating 45 degrees about Y axis, with coordinate axes superimposed to show X3D/VRML directions.Rotating -45 degrees about Z axis, with coordinate axes superimposed to show X3D/VRML directions.A 3D asterisk created with cylinders built within one vertical and two rotated coordinate systems, with coordinate axes superimposed to show X3D/VRML directions.A 3-D asterisk ball built with cylinders in rotated coordinate systems, with coordinate axes superimposed to show X3D/VRML directions.An archway with pieces of the roof built within translated, rotated coordinate systems.The lower arm of a desk lamp, rotated using a center of rotation at the lower end of the arm.The first and second arms of the desk lamp, each rotated using a center of rotation at the lower end of each arm.