InCircle() public static method

Check if the point pd lies inside the circle passing through pa, pb, and pc. The points pa, pb, and pc must be in counterclockwise order, or the sign of the result will be reversed.
Uses exact arithmetic if necessary to ensure a correct answer. The result returned is the determinant of a matrix. This determinant is computed adaptively, in the sense that exact arithmetic is used only to the degree it is needed to ensure that the returned value has the correct sign. Hence, this function is usually quite fast, but will run more slowly when the input points are cocircular or nearly so. See Robust Predicates paper for details.
public static InCircle ( System.Point pa, System.Point pb, System.Point pc, System.Point pd ) : double
pa System.Point Point a.
pb System.Point Point b.
pc System.Point Point c.
pd System.Point Point d.
return double
Ejemplo n.º 1
0
 public static double NonRegular(Point pa, Point pb, Point pc, Point pd)
 {
     return(Primitives.InCircle(pa, pb, pc, pd));
 }