- Common ways to obtain FlatEarth
private void myMethod () {FlatEarth f =
new FlatEarth()
new FlatEarth(double1, -100, double2)
new ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0, rotAngle, radius)
- Smart code suggestions by Codota
}
/** copy constructor - avoid clone !! */ public ProjectionImpl constructCopy() { return new FlatEarth( getOriginLat(), getOriginLon(), getRotationAngle()); }
/** * origin */ //private LatLonPointImpl origin; // why are we keeping this? @Override public ProjectionImpl constructCopy() { ProjectionImpl result = new FlatEarth(getOriginLat(), getOriginLon(), getRotationAngle()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
/** * origin */ //private LatLonPointImpl origin; // why are we keeping this? @Override public ProjectionImpl constructCopy() { ProjectionImpl result = new FlatEarth(getOriginLat(), getOriginLon(), getRotationAngle()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
/** * origin */ //private LatLonPointImpl origin; // why are we keeping this? @Override public ProjectionImpl constructCopy() { ProjectionImpl result = new FlatEarth(getOriginLat(), getOriginLon(), getRotationAngle()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }