/** * Makes a clone of this crystal. * * @return The cloned crystal. */ @Override public ICrystal clone() throws CloneNotSupportedException { Crystal clone = (Crystal) super.clone(); // clone the axes clone.setA(new Vector3d(this.aAxis)); clone.setB(new Vector3d(this.bAxis)); clone.setC(new Vector3d(this.cAxis)); return clone; }
/** * Makes a clone of this crystal. * * @return The cloned crystal. */ @Override public ICrystal clone() throws CloneNotSupportedException { Crystal clone = (Crystal) super.clone(); // clone the axes clone.setA(new Vector3d(this.aAxis)); clone.setB(new Vector3d(this.bAxis)); clone.setC(new Vector3d(this.cAxis)); return clone; }