Esempio n. 1
0
 public void AddRight(Point p)
 {
     Vertices.Add(p);
     _size++;
     Last = p;
     if (_size == 1) First = p;
 }
Esempio n. 2
0
        public void AddLeft(Point p)
        {
            Vertices.Insert(0, p);

            _size++;
            First = p;
            if (_size == 1) Last = p;
        }
Esempio n. 3
0
        public Edge(Point s, Point a, Point b)
        {
            Start = s;
            Left = a;
            Right = b;

            F = (a.X - b.X)/(b.Y - a.Y);
            G = s.Y - F*s.X;
            Direction = new Point(b.Y - a.Y, -(b.X - a.X));
            B = new Point(s.X + Direction.X, s.Y + Direction.Y);

            Intersected = false;
            Counted = false;
        }
Esempio n. 4
0
 protected bool Equals(Point other)
 {
     return X.Equals(other.X) && Y.Equals(other.Y);
 }
Esempio n. 5
0
 public Point(double x, double y, string name, Point doublePoint)
     : this(x, y, name)
 {
     DoublePoint = doublePoint;
 }
Esempio n. 6
0
 public Cell(Point site)
 {
     Site = site;
     Vertices = new List<Point>();
 }