find

abstract Sprite find(QuadView quad, int textureIndex)

Finds the atlas sprite containing the vertex centroid of the quad.Vertex centroid is essentially the mean u,v coordinate - the intent beingto find a point that is unambiguously inside the sprite (vs on an edge.)

Should be reliable for any convex quad or triangle. May fail for non-convex quads.Note that all the above refers to u,v coordinates. Geometric vertex does not matter,except to the extent it was used to determine u,v.

abstract Sprite find(float u, float v)

Alternative to find when vertex centroid is alreadyknown or unsuitable. Expects normalized (0-1) coordinates on the atlas texture,which should already be the case for u,v values in vanilla baked quads and in QuadView after calling spriteBake.

Coordinates must be in the sprite interior for reliable results. Generally willbe easier to use find unless you know the vertexcentroid will somehow not be in the quad interior. This method will be slightlyfaster if you already have the centroid or another appropriate value.