Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.util.math.Distance Class Reference

Class to calculate the distance between two points in arbitrary units. More...

Static Public Member Functions

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 Public Attributes

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
 

Detailed Description

Class to calculate the distance between two points in arbitrary units.

Member Function Documentation

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
x1
y1
x2
y2
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
geoPoints
Returns

Here is the caller graph for this function:

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
meters
Returns

Member Data Documentation

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: