I have this matrix
/// as if the create a rectangle
int [][] loc = {
{5, 15},//(x1, y1)
{5, 30}, // (x1, y2)
{20, 15},// (x2, y1)
{20, 30}, // (x2, y2)
}
// this are the point that i want to check if they are in the rectangular range or not
int [] [] point = {
{6, 16}, //(x, y)
{3, 17}, //(x, y)
}
I want i method that can take the point and search if it in the loc range or not by using
x1<x<x2
and y1<y<y2