cartesianToScreenPoint

fun cartesianToScreenPoint(point: Vec3, result: Vec2): Boolean

Transforms a Cartesian coordinate point to viewport coordinates.
This stores the converted point in the result argument, and returns a boolean value indicating whether the converted is successful. This returns false if the Cartesian point is clipped by either the WorldWindow's near clipping plane or far clipping plane.

Return

true if the transformation is successful, otherwise false

Parameters

point

the Cartesian point in meters

result

a pre-allocated Vec2 in which to return the screen point


open fun cartesianToScreenPoint(x: Double, y: Double, z: Double, result: Vec2): Boolean

Transforms a Cartesian coordinate point to viewport coordinates.
This stores the converted point in the result argument, and returns a boolean value indicating whether the converted is successful. This returns false if the Cartesian point is clipped by either the WorldWindow's near clipping plane or far clipping plane.

Return

true if the transformation is successful, otherwise false

Parameters

x

the Cartesian point's x component in meters

y

the Cartesian point's y component in meters

z

the Cartesian point's z component in meters

result

a pre-allocated Vec2 in which to return the screen point