findItemAt

open override fun findItemAt(preparedScene: PreparedScene, x: Double, y: Double, order: HitOrder, touchRadius: Double): RenderCommand?

Finds the RenderCommand at the given screen coordinates in the prepared scene.

Return

The matching RenderCommand, or null if nothing is hit

Parameters

preparedScene

The previously projected scene to query

x

The screen x-coordinate to test

y

The screen y-coordinate to test

order

Whether to return the front-most or back-most hit

touchRadius

Pixel radius for fuzzy hit testing (0.0 for exact)