Viewport.viewToScreen Method
Parent Object:
ViewportDefined in namespace "adsk::core" and the header file is <Core/Application/Viewport.h>
Description
Converts a 2D viewPort point into the equivalent screen coordinate.
Syntax
"viewport_var" is a variable referencing a Viewport object.returnValue = viewport_var.viewToScreen(viewCoordinate)
|
"viewport_var" is a variable referencing a Viewport object.
#include <Core/Application/Viewport.h>
returnValue = viewport_var->viewToScreen(viewCoordinate);
|
Return Value
Point2D |
Returns the equivalent point in the screen. This can return null in the case where the input point is outside the bounds of the screen, which also means it's outside any viewport. |
Parameters
viewCoordinate |
Point2D |
A 2D coordinate in the viewport. (0,0) indicates the upper-left corner of the viewport. |
Version
Introduced in version April 2017