JavaScript Application Programming Interface (API) for AutoCAD
ContentsIndexHome
PreviousUpNext
Acad.Editor.CurrentViewport.orbit Function

Autodesk.AutoCAD.js

JavaScript
function Acad.Editor.CurrentViewport.orbit(angleX,angleY,animate);
Parameters 
Description 
angleX 
type double

angleY 
type double

animate 
is Boolean 

Use this function to orbit the camera. During orbit, the camera target and distance from position to target remains fixed; the camera position moves along the surface of a sphere described by these constraints.
The X-angle and Y-angle parameters are in radians and correspond to angles traversed on this sphere along the cross product of the up vector and the eye vector (X) and along the up vector (Y).
The X-angle component of the orbit is performed before the Y-angle component.

Remarks
This function is not supported in Paper Space.
Links
Copyright (c) 2016. All rights reserved.
What do you think about this topic? Send feedback!