JavaScript Application Programming Interface (API) for AutoCAD
|
Autodesk.AutoCAD.js
function Acad.Editor.CurrentViewport.setView(position,target,upVector,fieldWidth,fieldHeight,projection,animate);
Parameters |
Description |
position |
position of type Acad.Point3d |
target |
target of type Acad.Point3d |
upVector |
upVector of type Acad.Vector3d |
fieldWidth |
fieldWidth of type float |
fieldHeight |
fieldHeight of type float |
projection |
projection (Parallel or Perspective ) |
animate |
animate is boolean |
Use this method to set the camera parameters needed to define the transformation from world space to normalized device coordinates. All values are specified in the world space coordinate system. Ensures that the camera position and target are distinct. Additionally, the specified upVector cannot be parallel to the eye vector (computed as the vector from the target to the position). fieldWidth and fieldHeight help define the transformation from view space to normalized device coordinates.
Copyright (c) 2016. All rights reserved.
|
What do you think about this topic? Send feedback!
|