IDLitVisualization::Rotate
Syntax | Arguments | Keywords | Version History
The IDLitVisualization::Rotate procedure method rotates this visualization about the given axis by the given angle.
This method overrides the superclass's IDLgrModel::Rotate method. This specialized implementation rotates about a center of rotation rather than about the origin, [0,0,0].
Syntax
Obj->[IDLitVisualization::]Rotate, Axis, Angle [, CENTER_OF_ROTATION=[x, y, z]] [, /PREMULTIPLY]
Arguments
Axis
A three-element vector of the form [x, y, z] describing the axis about which the visualization is to be rotated.
Angle
A scalar value indicating the angle of rotation (measured in degrees).
Keywords
CENTER_OF_ROTATION
Set this keyword to a three-element vector, [x, y, z], representing the center of the rotation. By default, the visualization's own center of rotation (accessible through IDLitVisualization::GetCenterRotation) will be used.
PREMULTIPLY
Set this keyword to cause the rotation matrix specified by Axis and Angle to be pre-multiplied to this visualization's current transformation matrix. By default, the rotation matrix is post-multiplied.
Note
In pre-multiplication, the current visualization's transform and scaling are applied before the specified rotation. In post-multiplication, the specified rotation is applied before the visualization's transformation and scaling.
Version History