I'm learning Computational Geometry, and need to check whether a point p lies inside a circle defined by a triangle(made by 3 points $a,b,c$, in counterclockwise order).
A very convenient method is to check the following determinant's sign $D=\begin{vmatrix} a_x & a_y & a_x^2+a_y^2 & 1 \\ b_x & b_y & b_x^2+b_y^2 & 1 \\ c_x & c_y & c_x^2+c_y^2 & 1 \\ p_x & p_y & p_x^2+p_y^2 & 1 \end{vmatrix}$
When $D>0$ $p$ is inside the circle defined by $a,b,c$,and outside when $D<0$ , right on the circle when $D=0$
And when $D=0$, it's clear the system of equations of D has a non-trivial solution. That means a circle determined by that solution go through $a,b,c,p$ simultaneously.
But how can one get the inside/outside information just check the sign of $D$?
How to prove it?