Class MapMath
- java.lang.Object
-
- ucar.unidata.geoloc.projection.proj4.MapMath
-
public class MapMath extends Object
Taken from com.jhlabs.map.proj Also see "http://search.cpan.org/src/DSTAHLKE/Cartography-Projection-GCTP-0.03/gctpc/" for C code- Since:
- Oct 8, 2009
- See Also:
- "http://www.jhlabs.com/java/maps/proj/index.html", "http://trac.osgeo.org/proj/"
-
-
Field Summary
Fields Modifier and Type Field Description static int
COLLINEAR
static int
DO_INTERSECT
static int
DONT_INTERSECT
static double
DTR
static double
EPS10
static double
HALFPI
static double
QUARTERPI
static double
RTD
static double
TWOPI
static ProjectionRect
WORLD_BOUNDS
static ProjectionRect
WORLD_BOUNDS_RAD
-
Constructor Summary
Constructors Constructor Description MapMath()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
acos(double v)
static double
acosd(double v)
static ProjectionPoint
add(ProjectionPoint a, ProjectionPoint b)
static double
asin(double v)
static double
asind(double v)
static double
atan2(double y, double x)
static double
atan2d(double y, double x)
static double
atand(double v)
static double
authlat(double beta, double[] APA)
static double[]
authset(double es)
static double
cosd(double v)
static double
cross(double x1, double y1, double x2, double y2)
static double
cross(ProjectionPoint a, ProjectionPoint b)
static double
degToRad(double v)
static double
distance(double dx, double dy)
static double
distance(ProjectionPoint a, ProjectionPoint b)
static double
dmsToDeg(double d, double m, double s)
static double
dmsToRad(double d, double m, double s)
static double
dot(ProjectionPoint a, ProjectionPoint b)
static double[]
enfn(double es)
static double
frac(double v)
static double
geocentricLatitude(double lat, double flatness)
static double
geographicLatitude(double lat, double flatness)
static double
greatCircleDistance(double lon1, double lat1, double lon2, double lat2)
static double
hypot(double x, double y)
static int
intersectSegments(ProjectionPoint aStart, ProjectionPoint aEnd, ProjectionPoint bStart, ProjectionPoint bEnd, ProjectionPointImpl p)
static double
inv_mlfn(double arg, double es, double[] en)
static double
longitudeDistance(double l1, double l2)
static double
mlfn(double phi, double sphi, double cphi, double[] en)
static double
msfn(double sinphi, double cosphi, double es)
static ProjectionPoint
multiply(ProjectionPoint a, ProjectionPoint b)
static void
negate(ProjectionPointImpl a)
static double
niceNumber(double x, boolean round)
static void
normalize(ProjectionPointImpl a)
static double
normalizeAngle(double angle)
static double
normalizeLatitude(double angle)
static double
normalizeLongitude(double angle)
static ProjectionPoint
perpendicular(ProjectionPoint a)
static double
phi2(double ts, double e)
static double
qsfn(double sinphi, double e, double one_es)
static double
radToDeg(double v)
static boolean
sameSigns(double a, double b)
static boolean
sameSigns(int a, int b)
static double
sind(double v)
Degree versions of trigonometric functionsstatic double
sphericalAzimuth(double lat0, double lon0, double lat, double lon)
static double
sqrt(double v)
static ProjectionPoint
subtract(ProjectionPoint a, ProjectionPoint b)
static double
takeSign(double a, double b)
static int
takeSign(int a, int b)
static double
tand(double v)
static double
trunc(double v)
static double
tsfn(double phi, double sinphi, double e)
-
-
-
Field Detail
-
HALFPI
public static final double HALFPI
- See Also:
- Constant Field Values
-
QUARTERPI
public static final double QUARTERPI
- See Also:
- Constant Field Values
-
TWOPI
public static final double TWOPI
- See Also:
- Constant Field Values
-
WORLD_BOUNDS_RAD
public static final ProjectionRect WORLD_BOUNDS_RAD
-
WORLD_BOUNDS
public static final ProjectionRect WORLD_BOUNDS
-
EPS10
public static final double EPS10
- See Also:
- Constant Field Values
-
RTD
public static final double RTD
- See Also:
- Constant Field Values
-
DTR
public static final double DTR
- See Also:
- Constant Field Values
-
DONT_INTERSECT
public static final int DONT_INTERSECT
- See Also:
- Constant Field Values
-
DO_INTERSECT
public static final int DO_INTERSECT
- See Also:
- Constant Field Values
-
COLLINEAR
public static final int COLLINEAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
sind
public static double sind(double v)
Degree versions of trigonometric functions
-
cosd
public static double cosd(double v)
-
tand
public static double tand(double v)
-
asind
public static double asind(double v)
-
acosd
public static double acosd(double v)
-
atand
public static double atand(double v)
-
atan2d
public static double atan2d(double y, double x)
-
asin
public static double asin(double v)
-
acos
public static double acos(double v)
-
sqrt
public static double sqrt(double v)
-
distance
public static double distance(double dx, double dy)
-
distance
public static double distance(ProjectionPoint a, ProjectionPoint b)
-
hypot
public static double hypot(double x, double y)
-
atan2
public static double atan2(double y, double x)
-
trunc
public static double trunc(double v)
-
frac
public static double frac(double v)
-
degToRad
public static double degToRad(double v)
-
radToDeg
public static double radToDeg(double v)
-
dmsToRad
public static double dmsToRad(double d, double m, double s)
-
dmsToDeg
public static double dmsToDeg(double d, double m, double s)
-
normalizeLatitude
public static double normalizeLatitude(double angle)
-
normalizeLongitude
public static double normalizeLongitude(double angle)
-
normalizeAngle
public static double normalizeAngle(double angle)
-
greatCircleDistance
public static double greatCircleDistance(double lon1, double lat1, double lon2, double lat2)
-
sphericalAzimuth
public static double sphericalAzimuth(double lat0, double lon0, double lat, double lon)
-
sameSigns
public static boolean sameSigns(double a, double b)
-
sameSigns
public static boolean sameSigns(int a, int b)
-
takeSign
public static double takeSign(double a, double b)
-
takeSign
public static int takeSign(int a, int b)
-
intersectSegments
public static int intersectSegments(ProjectionPoint aStart, ProjectionPoint aEnd, ProjectionPoint bStart, ProjectionPoint bEnd, ProjectionPointImpl p)
-
dot
public static double dot(ProjectionPoint a, ProjectionPoint b)
-
perpendicular
public static ProjectionPoint perpendicular(ProjectionPoint a)
-
add
public static ProjectionPoint add(ProjectionPoint a, ProjectionPoint b)
-
subtract
public static ProjectionPoint subtract(ProjectionPoint a, ProjectionPoint b)
-
multiply
public static ProjectionPoint multiply(ProjectionPoint a, ProjectionPoint b)
-
cross
public static double cross(ProjectionPoint a, ProjectionPoint b)
-
cross
public static double cross(double x1, double y1, double x2, double y2)
-
normalize
public static void normalize(ProjectionPointImpl a)
-
negate
public static void negate(ProjectionPointImpl a)
-
longitudeDistance
public static double longitudeDistance(double l1, double l2)
-
geocentricLatitude
public static double geocentricLatitude(double lat, double flatness)
-
geographicLatitude
public static double geographicLatitude(double lat, double flatness)
-
tsfn
public static double tsfn(double phi, double sinphi, double e)
-
msfn
public static double msfn(double sinphi, double cosphi, double es)
-
phi2
public static double phi2(double ts, double e)
-
enfn
public static double[] enfn(double es)
-
mlfn
public static double mlfn(double phi, double sphi, double cphi, double[] en)
-
inv_mlfn
public static double inv_mlfn(double arg, double es, double[] en)
-
authset
public static double[] authset(double es)
-
authlat
public static double authlat(double beta, double[] APA)
-
qsfn
public static double qsfn(double sinphi, double e, double one_es)
-
niceNumber
public static double niceNumber(double x, boolean round)
-
-