public override string ToString() { string result = ""; string space = ""; while (pointList.Count > 0) { GVPoint point = pointList.Dequeue(); result += space + point.ToString(); space = " "; } return(result); }
public GVRect(GVPoint lowerLeft, GVPoint upperRight) { if (lowerLeft.Is3D || upperRight.Is3D) { throw new GVException("2D GVPoints expected"); } if (lowerLeft.IsMarked || upperRight.IsMarked) { throw new GVException("Unmarked GVPoints expected"); } this.lowerLeft = lowerLeft; this.upperRight = upperRight; }
public void Add(GVPoint point) { pointList.Enqueue(point); }