- Common ways to obtain Stereographic
private void myMethod () {Stereographic s =
new Stereographic(p[0], p[1], p[2])
new Stereographic(latt, lont, scale)
new Stereographic(double1, lont, double2)
- Smart code suggestions by Codota
}
/** * Get the parameters as a String * * @return the parameters as a String */ public String paramsToString() { return " tangent " + origin.toString() + " scale: " + Format.d(getScale(), 6); }
/** * 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; }