pointInViewport

fun pointInViewport(x: Int, y: Int, checkIfObstructed: Boolean = true): Boolean

Whether or not the 2-dimension point is within the viewport of the applet.

Return

true if it is within bounds, false otherwise.

Parameters

x

The x-axis value

y

The y-axis value