geographicToScreenPoint

fun geographicToScreenPoint(position: Position, result: Vec2): Boolean

Transforms a geographic position 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 of the WorldWindow's near clipping plane or far clipping plane.

Return

true if the transformation is successful, otherwise false

Parameters

position

the geographic position

result

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


open fun geographicToScreenPoint(latitude: Angle, longitude: Angle, altitude: Double, result: Vec2): Boolean

Transforms a geographic position 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 of the WorldWindow's near clipping plane or far clipping plane.

Return

true if the transformation is successful, otherwise false

Parameters

latitude

the position's latitude

longitude

the position's longitude

altitude

the position's altitude in meters

result

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