intersects

open infix fun intersects(point: Point): Boolean

Checks whether a point on the View's plane, but relative to its parent, intersects (is "touching") the View. This enables custom hit detection logic for Views that have non-rectangular shapes.

The given point is already modified to account for the View's transform and camera, so implementations can simply work with the point directly. The default implementation checks:

point in bounds

Return

true IFF the point falls within the View

Parameters

point

on the View's plane