Beispiel #1
0
        public override string ToString()
        {
            string result = "";
            string space  = "";

            while (pointList.Count > 0)
            {
                GVPoint point = pointList.Dequeue();
                result += space + point.ToString();
                space   = " ";
            }
            return(result);
        }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 public void Add(GVPoint point)
 {
     pointList.Enqueue(point);
 }