worldToView

fun Camera.worldToView(worldPosition: Position): Float2

Get a view space position from a world position.

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

Return

normalized view coordinate x = (0 = left, 0.5 = center, 1 = right) y = (0 = bottom, 0.5 = center, 1 = top)

Parameters

worldPosition

The world position to convert.