computeScreenSpacePosition

fun computeScreenSpacePosition(scene: Scene, result: Cartesian2? = definedExternally): Cartesian2(source)

Computes the screen-space position of the billboard's origin, taking into account eye and pixel offsets. 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(b.computeScreenSpacePosition(scene).toString());

Return

The screen-space position of the billboard.

Parameters

scene

The scene.

result

The object onto which to store the result.

See also