I have an array of objects. Their position is a Vector2
(x, y). I want to select the closest object, given a (x, y) coordinate (that represents an user touch on screen). Searching on web I found a few algorithms, like this one. But before I try and implement that I would like to know if a similar algorithm is already implemented in LibGDX API.
↧
Libgdx array of Vector2 closest point
↧