Suppose $P_1=(x_1,y_1)$, $P_2=(x_2,y_2)$ are two points.
Also suppose that we have a rectangle which we just know the value of its sides $a$ and $b$.
I am looking for some kind of formulation which can show whether $P_1$ and $P_2$ are inside of rectangle or not.