public static bool InBetXAxis(Point pt, ConnectedPair cp) { // assumption that cp.Pt1.X is left and cp.Pt2.X is right bool valLR = (cp.Pt1.X <= pt.X) && (cp.Pt2.X >= pt.X); // assumption that cp.Pt1.X is right and cp.Pt2.X is left bool valRL = (cp.Pt2.X <= pt.X) && (cp.Pt1.X >= pt.X); return(valLR || valRL); }
public MPDistCP() { CP = new ConnectedPair(); Distance = 0.0; }
public CentroidCP() { CenterPoint = new Point(); CP = new ConnectedPair(); }