public class MapMath
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
MapMath() |
Modifier and Type | Method and 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 functions
|
static 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) |
public static final double HALFPI
public static final double QUARTERPI
public static final double TWOPI
public static final ProjectionRect WORLD_BOUNDS_RAD
public static final ProjectionRect WORLD_BOUNDS
public static final double EPS10
public static final double RTD
public static final double DTR
public static final int DONT_INTERSECT
public static final int DO_INTERSECT
public static final int COLLINEAR
public static double sind(double v)
public static double cosd(double v)
public static double tand(double v)
public static double asind(double v)
public static double acosd(double v)
public static double atand(double v)
public static double atan2d(double y, double x)
public static double asin(double v)
public static double acos(double v)
public static double sqrt(double v)
public static double distance(double dx, double dy)
public static double distance(ProjectionPoint a, ProjectionPoint b)
public static double hypot(double x, double y)
public static double atan2(double y, double x)
public static double trunc(double v)
public static double frac(double v)
public static double degToRad(double v)
public static double radToDeg(double v)
public static double dmsToRad(double d, double m, double s)
public static double dmsToDeg(double d, double m, double s)
public static double normalizeLatitude(double angle)
public static double normalizeLongitude(double angle)
public static double normalizeAngle(double angle)
public static double greatCircleDistance(double lon1, double lat1, double lon2, double lat2)
public static double sphericalAzimuth(double lat0, double lon0, double lat, double lon)
public static boolean sameSigns(double a, double b)
public static boolean sameSigns(int a, int b)
public static double takeSign(double a, double b)
public static int takeSign(int a, int b)
public static int intersectSegments(ProjectionPoint aStart, ProjectionPoint aEnd, ProjectionPoint bStart, ProjectionPoint bEnd, ProjectionPointImpl p)
public static double dot(ProjectionPoint a, ProjectionPoint b)
public static ProjectionPoint perpendicular(ProjectionPoint a)
public static ProjectionPoint add(ProjectionPoint a, ProjectionPoint b)
public static ProjectionPoint subtract(ProjectionPoint a, ProjectionPoint b)
public static ProjectionPoint multiply(ProjectionPoint a, ProjectionPoint b)
public static double cross(ProjectionPoint a, ProjectionPoint b)
public static double cross(double x1, double y1, double x2, double y2)
public static void normalize(ProjectionPointImpl a)
public static void negate(ProjectionPointImpl a)
public static double longitudeDistance(double l1, double l2)
public static double geocentricLatitude(double lat, double flatness)
public static double geographicLatitude(double lat, double flatness)
public static double tsfn(double phi, double sinphi, double e)
public static double msfn(double sinphi, double cosphi, double es)
public static double phi2(double ts, double e)
public static double[] enfn(double es)
public static double mlfn(double phi, double sphi, double cphi, double[] en)
public static double inv_mlfn(double arg, double es, double[] en)
public static double[] authset(double es)
public static double authlat(double beta, double[] APA)
public static double qsfn(double sinphi, double e, double one_es)
public static double niceNumber(double x, boolean round)