Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public MPDistCP()
 {
     CP       = new ConnectedPair();
     Distance = 0.0;
 }
Esempio n. 3
0
 public CentroidCP()
 {
     CenterPoint = new Point();
     CP          = new ConnectedPair();
 }