Returns whether q lies inside the segment/rectangle defined by p and r. This is an approximation to "does q lie on a segment pr" check.
q
p
r
pr
Returns whether
qlies inside the segment/rectangle defined bypandr. This is an approximation to "doesqlie on a segmentpr" check.