Let us check whether the point P ( 10 , 15 ) lies inside the rectangle formed by A ( 0 , 10 ) , B ( 10 , 0 ) , C ( 0 , - 10 ) , D ( - 10 , 0 )
if ( check ( 0 , 10 , 10 , 0 , 0 , - 10 , - 10 , 0 , 10 , 15 ) ) Console . Write ( " yes " ) ; else Console . Write ( " no " ) ; } }