worldToScreen

fun worldToScreen(relativeX: Int, relativeZ: Int, h: Int): Point

Converts a 3-dimensional point within the overworld to a 2-dimensional point on the screen. The 3-dimensional axis is flipped to represent the X axis being horizontal, Y axis being vertical, and Z axis to be depth.

Return

The 2-dimensional point on screen.

Parameters

relativeX

The x-axis value relative to the origin

relativeZ

The z-axis value relative to the origin

h

The y-axis value, otherwise known as height.

fun worldToScreen(relativeX: Int, relativeY: Int?, relativeZ: Int, h: Int): Point

Converts a 3-dimensional point within the overworld to a 2-dimensional point on the screen. The 3-dimensional axis is flipped to represent the X axis being horizontal, Y axis being vertical, and Z axis to be depth.

Return

The 2-dimensional point on screen.

Parameters

relativeX

The x-axis value relative to the origin

relativeY

The y-axis value relative to the origin

relativeZ

The z-axis value relative to the origin

h

The y-axis value, otherwise known as height