Class to calculate the distance between two points in arbitrary units.
More...
|
static double | fastConversionMetersToGeoPoints (double meters) |
| This method do an approximation form meters to geopoints. More...
|
|
static double | fastConversionGeopointsToMeters (double geoPoints) |
| This method do an approximation form geopoints to meters. More...
|
|
static double | calculateDistance (double x1, double y1, double x2, double y2) |
| Calculate the distance using the coordinates. More...
|
|
static double | calculateDistance (double x1, double y1, double z1, double x2, double y2, double z2) |
|
static double | calculateDistanceMeters (GeoObject objA, GeoObject objB) |
|
static double | calculateDistanceMeters (double aLong, double aLat, double bLong, double bLat) |
|
static double | calculateAreakm2 (double longitude_1, double latitude_1, double longitude_2, double latitude_2) |
|
static double | calculateDistanceCoordinates (double aLong, double aLat, double bLong, double bLat) |
|
static double | calculateDistanceCoordinates (double aLong, double aLat, double aAlt, double bLong, double bLat, double bAlt) |
|
|
static final double | METERS_TO_GEOPOINT = 107817.51838439942 |
| Names for the units to use. More...
|
|
static final int | E6 = 1000000 |
|
static final double | EARTH_RADIUS_KM = 6384 |
|
Class to calculate the distance between two points in arbitrary units.
static double com.beyondar.android.util.math.Distance.calculateDistance |
( |
double |
x1, |
|
|
double |
y1, |
|
|
double |
x2, |
|
|
double |
y2 |
|
) |
| |
|
static |
Calculate the distance using the coordinates.
It return a coordinates, no meters
- Parameters
-
- Returns
static double com.beyondar.android.util.math.Distance.fastConversionGeopointsToMeters |
( |
double |
geoPoints | ) |
|
|
static |
This method do an approximation form geopoints to meters.
Do not use it for long distances (> 5 km)
- Parameters
-
- Returns
static double com.beyondar.android.util.math.Distance.fastConversionMetersToGeoPoints |
( |
double |
meters | ) |
|
|
static |
This method do an approximation form meters to geopoints.
Do not use it for long distances (> 5 km)
- Parameters
-
- Returns
final double com.beyondar.android.util.math.Distance.METERS_TO_GEOPOINT = 107817.51838439942 |
|
static |
Names for the units to use.
Dive the meter to this number to get the geopoints (double)
The documentation for this class was generated from the following file:
- src/com/beyondar/android/util/math/Distance.java