I have a point on a 2D grid (x, y), and I need to find all the points located at a distance n from this point. The way I measure the distance is to use the formula for the distance between two points. Does anyone know how to do this?
Edit: just for reference, what I'm trying to do is write some kind of AI path search that will be at some distance from the target in a system using grid-based locations. I am currently using A * path finder, but I'm not sure if it matters or matters, as I am new to this.
source
share