There are several ways to solve this problem. But the simplest and most direct is to check the slope.
, AP
AD
, P
AD
. , .
Edit:
,
A -> (0,3)
B -> (3,3)
C -> (0,0)
D -> (3,0)
AD
(3-0)/(3-0) = 1
. , P
(2,2)
, AP
(2-3)/(2-0) = -1/2
.
AD
> AP
, P
AD
. , P
AD
, , , , .