Свойство | Type | Description | |
---|---|---|---|
DEGREES_TO_RADIANS | double | ||
DEG_180_AS_RADS | double | ||
DEG_225_AS_RADS | double | ||
DEG_270_AS_RADS | double | ||
DEG_45_AS_RADS | double | ||
DEG_90_AS_RADS | double | ||
DEG_TO_KM | double | ||
EARTH_EQUATORIAL_RADIUS_KM | double | ||
EARTH_EQUATORIAL_RADIUS_MI | double | ||
EARTH_MEAN_RADIUS_KM | double | ||
EARTH_MEAN_RADIUS_MI | double | ||
KM_TO_DEG | double | ||
KM_TO_MILES | double | ||
MILES_TO_KM | double | ||
RADIANS_TO_DEGREES | double | ||
SIN_45_AS_RADS | double |
Méthode | Description | |
---|---|---|
CalcBoxByDistFromPtDEG ( double lat, double lon, double distDEG, |
||
CalcBoxByDistFromPt_deltaLonDEG ( double lat, double lon, double distDEG ) : double |
The delta longitude of a point-distance. In other words, half the width of the bounding box of a circle.
|
|
CalcBoxByDistFromPt_latHorizAxisDEG ( double lat, double lon, double distDEG ) : double |
The latitude of the horizontal axis (e.g. left-right line) of a circle. The horizontal axis of a circle passes through its furthest left-most and right-most edges. On a 2D plane, this result is always
|
|
Degrees2Dist ( double degrees, double radius ) : double | ||
Dist2Degrees ( double dist, double radius ) : double |
Converts a distance in the units of the radius to degrees (360 degrees are in a circle). A spherical earth model is assumed.
|
|
Dist2Radians ( double dist, double radius ) : double |
Converts a distance in the units of
|
|
DistHaversineRAD ( double lat1, double lon1, double lat2, double lon2 ) : double | ||
DistLawOfCosinesRAD ( double lat1, double lon1, double lat2, double lon2 ) : double | ||
DistSquaredCartesian ( double vec1, double vec2 ) : double | ||
DistVincentyRAD ( double lat1, double lon1, double lat2, double lon2 ) : double | ||
NormLatDEG ( double lat_deg ) : double |
Puts in range -90 <= lat_deg <= 90.
|
|
NormLonDEG ( double lon_deg ) : double |
Puts in range -180 <= lon_deg <= +180.
|
|
PointOnBearingRAD ( double startLat, double startLon, double distanceRAD, double bearingRAD, |
||
Radians2Dist ( double radians, double radius ) : double | ||
ToDegrees ( double radians ) : double |
Same as {@link Math#toDegrees(double)} but 3x faster (multiply vs. divide). See CompareRadiansSnippet.java in tests.
|
|
ToRadians ( double degrees ) : double |
Same as {@link Math#toRadians(double)} but 3x faster (multiply vs. divide). See CompareRadiansSnippet.java in tests.
|
|
VectorBoxCorner ( double center, double result, double distance, bool upperRight ) : double[] | ||
VectorDistance ( double vec1, double vec2, double power ) : double |
Calculate the p-norm (i.e. length) between two vectors
|
|
VectorDistance ( double vec1, double vec2, double power, double oneOverPower ) : double |
Calculate the p-norm (i.e. length) between two vectors
|
public static CalcBoxByDistFromPtDEG ( double lat, double lon, double distDEG, |
||
lat | double | |
lon | double | |
distDEG | double | |
ctx | ||
reuse | Rectangle | |
Résultat | Rectangle |
public static CalcBoxByDistFromPt_deltaLonDEG ( double lat, double lon, double distDEG ) : double | ||
lat | double | |
lon | double | |
distDEG | double | |
Résultat | double |
public static CalcBoxByDistFromPt_latHorizAxisDEG ( double lat, double lon, double distDEG ) : double | ||
lat | double | |
lon | double | |
distDEG | double | |
Résultat | double |
public static Degrees2Dist ( double degrees, double radius ) : double | ||
degrees | double | |
radius | double | |
Résultat | double |
public static Dist2Degrees ( double dist, double radius ) : double | ||
dist | double | |
radius | double | |
Résultat | double |
public static Dist2Radians ( double dist, double radius ) : double | ||
dist | double | |
radius | double | |
Résultat | double |
public static DistHaversineRAD ( double lat1, double lon1, double lat2, double lon2 ) : double | ||
lat1 | double | |
lon1 | double | |
lat2 | double | |
lon2 | double | |
Résultat | double |
public static DistLawOfCosinesRAD ( double lat1, double lon1, double lat2, double lon2 ) : double | ||
lat1 | double | |
lon1 | double | |
lat2 | double | |
lon2 | double | |
Résultat | double |
public static DistSquaredCartesian ( double vec1, double vec2 ) : double | ||
vec1 | double | |
vec2 | double | |
Résultat | double |
public static DistVincentyRAD ( double lat1, double lon1, double lat2, double lon2 ) : double | ||
lat1 | double | |
lon1 | double | |
lat2 | double | |
lon2 | double | |
Résultat | double |
public static NormLatDEG ( double lat_deg ) : double | ||
lat_deg | double | |
Résultat | double |
public static NormLonDEG ( double lon_deg ) : double | ||
lon_deg | double | |
Résultat | double |
public static PointOnBearingRAD ( double startLat, double startLon, double distanceRAD, double bearingRAD, |
||
startLat | double | |
startLon | double | |
distanceRAD | double | |
bearingRAD | double | |
ctx | ||
reuse | System.Point | |
Résultat | System.Point |
public static Radians2Dist ( double radians, double radius ) : double | ||
radians | double | |
radius | double | |
Résultat | double |
public static ToDegrees ( double radians ) : double | ||
radians | double | |
Résultat | double |
public static ToRadians ( double degrees ) : double | ||
degrees | double | |
Résultat | double |
public static VectorBoxCorner ( double center, double result, double distance, bool upperRight ) : double[] | ||
center | double | |
result | double | |
distance | double | |
upperRight | bool | |
Résultat | double[] |
public static VectorDistance ( double vec1, double vec2, double power ) : double | ||
vec1 | double | The first vector |
vec2 | double | The second vector |
power | double | The power (2 for cartesian distance, 1 for manhattan, etc.) |
Résultat | double |
public static VectorDistance ( double vec1, double vec2, double power, double oneOverPower ) : double | ||
vec1 | double | The first vector |
vec2 | double | The second vector |
power | double | The power (2 for cartesian distance, 1 for manhattan, etc.) |
oneOverPower | double | If you've precalculated oneOverPower and cached it, use this method to save one division operation over {@link #vectorDistance(double[], double[], double)}. |
Résultat | double |
public static double DEGREES_TO_RADIANS | ||
Résultat | double |
public static double EARTH_EQUATORIAL_RADIUS_KM | ||
Résultat | double |
public static double EARTH_EQUATORIAL_RADIUS_MI | ||
Résultat | double |
public static double EARTH_MEAN_RADIUS_KM | ||
Résultat | double |
public static double EARTH_MEAN_RADIUS_MI | ||
Résultat | double |
public static double RADIANS_TO_DEGREES | ||
Résultat | double |