// copy of this blaupoint public virtual IBlauPoint clone() { IBlauPoint dupe = new BlauPoint(this.Space); for (int i = 0; i < this.Space.Dimension; i++) { dupe.setCoordinate(i, this.getCoordinate(i)); } return(dupe); }
// get minimal point public IBlauPoint getMinimalPoint() { IBlauPoint bp = new BlauPoint(this); for (int i = 0; i < this.Dimension; i++) { bp.setCoordinate(i, this.getAxis(i).MinimumValue); } return(bp); }
// comparator public virtual int CompareTo(object obj) { if (obj is BlauPoint) { BlauPoint p = (BlauPoint)obj; for (int i = 0; i < this.Space.Dimension; i++) { if (this.getCoordinate(i) < p.getCoordinate(i)) { return(-1); } if (this.getCoordinate(i) > p.getCoordinate(i)) { return(+1); } } return(0); } throw new ArgumentException("object is not a BlauPoint"); }