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

            _size++;
            First = p;
            if (_size == 1) Last = p;
        }
Ejemplo 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;
        }
Ejemplo n.º 4
0
 protected bool Equals(Point other)
 {
     return X.Equals(other.X) && Y.Equals(other.Y);
 }
Ejemplo n.º 5
0
 public Point(double x, double y, string name, Point doublePoint)
     : this(x, y, name)
 {
     DoublePoint = doublePoint;
 }
Ejemplo n.º 6
0
 public Cell(Point site)
 {
     Site = site;
     Vertices = new List<Point>();
 }