Check If A Point Is Inside A Rectangle C++