worldToScreen

fun View.worldToScreen(worldPosition: Position): Float2

Get a screen space position from a world position.

The device coordinate space is unaffected by the orientation of the device.

Return

Screen coordinate in pixels where the world position is. (0 = left, View Width = right) (0 = top, View Height = bottom) Screen space is in Android device screen coordinates

Parameters

worldPosition

The world position to convert.