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