Suppose I have one plane $Ax+By+Cz+D=0.$ I want to test $(x, y, z)$ is inside of this plane or outside.
My attempt:1 Then draw normal N on that plane which point away from the observer Image1.
If $Ax+By+Cz+D>0$ or $(-A)x+(-B)y+(-C)z+(-D)<0$ then $(x, y, z)$ is outside of the plane.
And if $Ax+By+Cz+D<0$ or $(-A)x+(-B)y+(-C)z+(-D)>0$ then $(x, y, z)$ is inside of the plane.
My attempt:2 Now draw the normal N on that plane which point towards the observer image2.
If $Ax+By+Cz+D<0$ or $(-A)x+(-B)y+(-C)z+(-D)>0$ then $(x, y, z)$ is outside of the plane.
And if $Ax+By+Cz+D>0$ or $(-A)x+(-B)y+(-C)z+(-D)<0$ then $(x, y, z)$ is inside of the plane.
My question is my both attempts are right? Can anybody help me to understand.
For a plane with equation $ax+by+cz+d=0$ defining two halfspaces, a good guideline is as follows:
"Two points $(x_1,y_1,z_1)$ and $(x_2,y_2,z_2)$ are in the same halfspace if and only if $(ax_1+by_1+cz_1+d)$ and $(ax_2+by_2+cz_2+d)$ have the same sign."
If one of them is the position of the observer, and that this position is the origin $(0,0,0)$, this test becomes :
Point $(x_1,y_1,z_1)$ is on the same side of the plane as the observer iff $ax_1+by_1+cz_1+d$ and $d$ have the same sign.
You can call this halfspace the "halfspace of the observer" ("front halfspace" is kind of ambiguous).
Example: Consider the plane with equation $x+y+z-1=0$ (intersecting the axes in $(1,0,0), (0,1,0)$ and $(0,0,1)$), a point like $(x,y,z)=(-2,-3,-4)$ is on the same halfplane as the origin because $-2-3-4-1=-10$ has the same sign as $d=-1$.
Edit 1: If your plane is defined by three points $P,Q,R$ in this order, it defines a natural orientation of the plane, then a natural normal by taking the cross product $\vec{N}=\vec{PQ} \times \vec{QR}$.
Edit 2: If the coefficient $c$ of variable $z$ is non zero, you can extract:
$$z=a'x+b'y+c'$$
In this case, you consider it as a surface, and you have un-ambiguous above and below halfspaces.