I have two rectagle. User inputs the co-ordiates of both the rectagle.
Let us say, co-ordinates of big rectangle are
Bx1,By1,Bx2,By2,Bx3,By3,Bx4 and By4
and co-ordinates of small rectangle are
Sx1,Sy1,Sx2,Sy2,Sx3,Sy3,Sx4 and Sy4
Can anybody help me writing "C" program to check, whether small rectagle is fully inside the big rectangle?
It is simple if you use your own number of "if" and "else". I am looking at program that use minimum number of "if" condition.
Assume that, x increses from left to right and y increases from botton to top.