pointToWindowCoordinates

fun pointToWindowCoordinates(    modelViewProjectionMatrix: Matrix4,     viewportTransformation: Matrix4,     point: Cartesian3,     result: Cartesian2? = definedExternally): Cartesian2(source)

Transform a point from model coordinates to window coordinates.

Return

The modified result parameter or a new Cartesian2 instance if none was provided.

Parameters

modelViewProjectionMatrix

The 4x4 model-view-projection matrix.

viewportTransformation

The 4x4 viewport transformation.

point

The point to transform.

result

The object onto which to store the result.

See also