inViewport

fun inViewport(p: Point, 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

p

The 2-dimensional point to check.