Class SoRotationXYZ

All Implemented Interfaces:
SafeDisposable

public class SoRotationXYZ extends SoTransformation
Node representing a 3D rotation about the x-, y-, or z-axis. This node defines a 3D rotation about one of the three principal axes. The rotation is accumulated into the current transformation, which is applied to subsequent shapes.

File format/default:

RotationXYZ {

    axis X
    angle 0
}

Action behavior:

SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoRayPickAction
Accumulates rotation transformation into the current transformation. Sets: SoModelMatrixElement

SoGetMatrixAction
Returns the matrix corresponding to the rotation.

See Also:
  • Field Details

  • Constructor Details

    • SoRotationXYZ

      public SoRotationXYZ()
      Creates a rotation node with default settings.
  • Method Details

    • getRotation

      public SbRotation getRotation()
      Returns an SbRotation equivalent to the specified rotation.