icon location question [closed]
Hey All, I would like to know if it is possible to detect whether an object/icon is closer to point A or point B on a 2D surface? The object or icon is not moving. so just static. And if so, is it also possible to detect whether an object or icon is closer to point A to point J? (points A to J are in a straight line, like a scale)
At this point i am not looking for information how this is to be done, i just hope to find out that it is possible (or not).
distance between two point can be calculated using the Euclidean distance.
Note that this works in any dimensions! A good thing to add to your toolset.
yea, plain maths problem
As a PE teacher i don't know much about coding, but from your answers i can understand it is possible. So i would like to say thank you!