computeScreenSpacePosition
fun computeScreenSpacePosition(scene: Scene, result: Cartesian2? = definedExternally): Cartesian2(source)
Computes the screen-space position of the point's origin. The screen space origin is the top, left corner of the canvas; x
increases from left to right, and y
increases from top to bottom.
console.log(p.computeScreenSpacePosition(scene).toString());
Content copied to clipboard
Return
The screen-space position of the point.
Parameters
scene
The scene.
result
The object onto which to store the result.