/** * Clone this projection * * @return a clone of this. */ public Object clone() { Stereographic cl = (Stereographic) super.clone(); cl.origin = new LatLonPointImpl(getTangentLat(), getTangentLon()); return cl; }
/** * Returns true if this represents the same Projection as proj. * * @param proj projection in question * @return true if this represents the same Projection as proj. */ public boolean equals(Object proj) { if (!(proj instanceof Stereographic)) { return false; } Stereographic oo = (Stereographic) proj; return ((this.getScale() == oo.getScale()) && (this.getTangentLat() == oo.getTangentLat()) && (this.getTangentLon() == oo.getTangentLon()) && this.defaultMapArea.equals(oo.defaultMapArea)); }
/** * copy constructor - avoid clone !! */ public ProjectionImpl constructCopy() { return new Stereographic(getTangentLat(), getTangentLon(), getScale(), getFalseEasting(), getFalseNorthing()); }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new Stereographic(getTangentLat(), getTangentLon(), getScale(), getFalseEasting(), getFalseNorthing(), getEarthRadius()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new Stereographic(getTangentLat(), getTangentLon(), getScale(), getFalseEasting(), getFalseNorthing(), getEarthRadius()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new Stereographic(getTangentLat(), getTangentLon(), getScale(), getFalseEasting(), getFalseNorthing(), getEarthRadius()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }