
 
returns true iff the signed distance of p and l is larger than the signed distance of q and l.  

 
returns true iff the signed distance of r and l is larger than the signed distance of s and l, where l is the directed line through points p and q. 