Viewport.modelToViewSpace Method

Parent Object: Viewport
Defined in namespace "adsk::core" and the header file is <Core/Application/Viewport.h>

Description

A specified point in model space returns the equivalent point in view space.

Syntax

"viewport_var" is a variable referencing a Viewport object.
returnValue = viewport_var.modelToViewSpace(modelCoordinate)
"viewport_var" is a variable referencing a Viewport object.

#include <Core/Application/Viewport.h>

returnValue = viewport_var->modelToViewSpace(modelCoordinate);

Return Value

Type Description
Point2D Returns the equivalent point in view space.

Parameters

Name Type Description
modelCoordinate Point3D A coordinate in model space.

Version

Introduced in version December 2016