I have a set of points that I can plot on a graph that if connected would form shape (bounded box might be the correct term?). How can I find if another point falls inside this box?
Here points for an example box:
var box = [[181,7500],[181,11279],[185,12500], [196.4,12500],[196.4,7500]];
var point_inside_box = [188,10000];
var point_outside_box = [182,12000];
It is easy to see if these points fall outside of the box if you visualize it as below:
Is there a way to do this in javascript with a bit of math?