public GVPoint(double x, double y, bool marked) { this.x = new GVDouble(x); this.y = new GVDouble(y); Is3D = false; IsMarked = marked; }
public GVPoint(double x, double y) { this.x = new GVDouble(x); this.y = new GVDouble(y); Is3D = false; IsMarked = false; }
public override string ToString() { string result = ""; string colon = ""; while (doubleList.Count > 0) { GVDouble d = doubleList.Dequeue(); result += colon + d.ToString(); colon = ":"; } return(result); }
public void Add(GVColor color, GVDouble weight) { if (weight < GVDouble.Zero) { throw new GVException("Color-weight must be between 0.0 and 1.0"); } if ((weightSum + weight) > GVDouble.One) { throw new GVException("Summed Color-weights exceed 1.0"); } weightSum += weight; colorList.Enqueue(new WeightedColor { Weight = weight, Color = color }); }
public GVColorList() { colorList = new Queue <WeightedColor>(); weightSum = new GVDouble(0.0); }
public void Add(GVDouble d) { doubleList.Enqueue(d); }