(Rotate)

Apply a rotation command by specifying one of the subfunctions (Screen), (Steps), (Snap) or (UpVector).

JSON Format

Type

Object

Properties

Property

Description

(Anchor)

Defines the anchor the view is rotated around.

(Screen)

Rotate the view according to the specified direction around the yaw, pitch and/or roll axes. The direction is specified in percentage screen coordinates to work with a mouse movements on rendered views of different resolutions. A value \((0.5, 0.5)\) means that the mouse was moved halfway to the right and halfway up on a $(command:RenderView) scene.

(Snap)

Rotate the view to the next 45° angle between the line of sight and a world unit vector.

(Steps)

Rotate the view in the given number of steps around the yaw, pitch and/or roll axes. One step length represents a single keystroke and rotates the view a small angle.

(UpVector)

Defines a constraint on rotations