/// <summary> /// Static collinear. /// </summary> public static bool Collinear(C2DPoint pt1, C2DPoint pt2, C2DPoint pt3) { return(C2DTriangle.GetAreaSigned(pt1, pt2, pt3) == 0); }
/// <summary> /// True if the point is to the right of the line. /// </summary> /// <param name="OtherPoint">The new point to test.</param> public bool IsOnRight(C2DPoint OtherPoint) { return(C2DTriangle.GetAreaSigned(point, GetPointTo(), OtherPoint) < 0); }