Problem with Polygon Triangulation, for Floor Placement

Basically I need to get which Point is in “Front” of a point
I need to check which Point is ““In front”” of C (answer is B)

             A  
                        C
  B

(answer is A)

            B  
                        A
  C

Thanks in advance…