public int getRowFromNearestParallel(double latitude) { int degrees = (int) MapMath.radToDeg(MapMath.normalizeLatitude(latitude)); if (degrees < -80 || degrees > 84) return 0; if (degrees > 80) return 24; return (degrees + 80) / 8 + 3; }
public void setUTMZone(int zone) { zone--; projectionLongitude = (zone + .5) * Math.PI / 30. - Math.PI; projectionLatitude = 0.0; scaleFactor = 0.9996; falseEasting = 500000; initialize(); }
public static void normalize(Point2D.Double a) { double d = distance(a.x, a.y); a.x /= d; a.y /= d; }
/** * copy constructor - avoid clone !! */ public ProjectionImpl constructCopy() { return new AlbersEqualAreaEllipse(getOriginLat(), getOriginLon(), getParallelOne(), getParallelTwo(), getFalseEasting(), getFalseNorthing(), getEarth()); }
/** * copy constructor - avoid clone !! */ public ProjectionImpl constructCopy() { return new LambertConformalConicEllipse(getOriginLat(), getOriginLon(), getParallelOne(), getParallelTwo(), getFalseEasting(), getFalseNorthing(), getEarth()); }
public static double frac(double v) { return v - trunc(v); }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new EquidistantAzimuthalProjection(lat0, lon0, falseEasting, falseNorthing, earth); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { return (ProjectionImpl) clone(); }
public int getRowFromNearestParallel(double latitude) { int degrees = (int) MapMath.radToDeg(MapMath.normalizeLatitude(latitude)); if (degrees < -80 || degrees > 84) return 0; if (degrees > 80) return 24; return (degrees + 80) / 8 + 3; }
public void setUTMZone(int zone) { zone--; projectionLongitude = (zone + .5) * Math.PI / 30. - Math.PI; projectionLatitude = 0.0; scaleFactor = 0.9996; falseEasting = 500000; initialize(); }
public static void normalize(Point2D.Double a) { double d = distance(a.x, a.y); a.x /= d; a.y /= d; }
public static double frac(double v) { return v - trunc(v); }
public int getRowFromNearestParallel(double latitude) { int degrees = (int)MapMath.radToDeg(MapMath.normalizeLatitude(latitude)); if (degrees < -80 || degrees > 84) return 0; if (degrees > 80) return 24; return (degrees + 80) / 8 + 3; }
public void setUTMZone(int zone) { zone--; projectionLongitude = (zone + .5) * Math.PI / 30. - Math.PI; projectionLatitude = 0.0; scaleFactor = 0.9996; falseEasting = 500000; initialize(); }
public static double distance(Point2D.Double a, Point2D.Double b) { return distance(a.x-b.x, a.y-b.y); }
public static double frac(double v) { return v - trunc(v); }
public int getRowFromNearestParallel(double latitude) { int degrees = (int) MapMath.radToDeg(MapMath.normalizeLatitude(latitude)); if (degrees < -80 || degrees > 84) return 0; if (degrees > 80) return 24; return (degrees + 80) / 8 + 3; }
public void setUTMZone(int zone) { zone--; projectionLongitude = (zone + .5) * Math.PI / 30. -Math.PI; projectionLatitude = 0.0; scaleFactor = 0.9996; falseEasting = 500000; initialize(); }
public static double distance(Point2D.Double a, Point2D.Double b) { return distance(a.x-b.x, a.y-b.y); }
public static double frac(double v) { return v - trunc(v); }