isInside

open fun isInside(x: Int, y: Int): Boolean

Detects if a point falls inside this key.

Return

whether or not the point falls inside the key. If the key is attached to an edge, it will assume that all points between the key and the edge are considered to be inside the key.

Parameters

x

the x-coordinate of the point

y

the y-coordinate of the point