public ObstacleGraphPoint(Polygon polygon, Coordinate previousPoint, Coordinate point, Coordinate nextPoint) { Polygon = polygon; Point = point; AdjacentLines = new ObstacleGraphLine[2] { new ObstacleGraphLine(point, previousPoint), new ObstacleGraphLine(point, nextPoint) }; }
public bool Remove(ObstacleGraphLine line) { return(edges.Remove(line)); }
public void Add(ObstacleGraphLine line) { edges.Add(line); }
public ObstacleGraphPoint(Coordinate point) { AdjacentLines = new ObstacleGraphLine[0]; Polygon = Polygon.Empty; Point = point; }