contains

fun contains(screenCoordinate: Point2D<Double>): Boolean

Tests if the give screenCoordinate lays inside the bounding box (in all directions: within half width or height + half of hit border from the center point, inclusive).

Return

true if the screenCoordinate lays inside the bounding box, false otherwise.

Parameters

screenCoordinate

The screen coordinate to test.