Alright so currently I have a grid that is made with Rows and Columns and each cell has a 2dvector as a coord (X1Y1).
say I have a grid with 20 rows and 20 columns that would give me 400 different 2d vectors as a coord.
When I input a specific coord for example lets use X50Y50 and i want to get all vectors with in a 4 cell radius
Right now i have to currently make a function that i manualy made a vector + or - for each cell that could be in radius and its quite cumbersome and seems alot more work than it should be as if i want to scale it and get vectors in a bigger radius i have to then make 100s of + or 1 nodes for each cell i want to obtain.
Is there any way i could just put the start and end coords and get all between?
For example a function takes the origin cell coord the center then adds the max radius and subtracts max radius and then gets all cell coords between those two?
EXAMPLE OF WHAT I WANT TO DO: Start origin Cell Coord is X5,Y5 I want a radius of 4 cells out
Max radius Coord = X5+4=X9,Y5-4=Y1 Max Radius Start = X9,Y1
Min Radius Coord = X5-4=X1,Y5+4=Y9 Min Radius Coord = X1,Y9
So how do I get all cell coords between X9,Y1 and X1,Y9?
I can’t seem to find a simple way to just get all vectors within a range or box. I know the is point in box node exists but i dont understand how to apply it or if its the right way to do what i want.