public final class GISTool extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
getDistance(double x1,
double x2,
double y1,
double y2)
calculates the distance between two locations, which are given as coordinates, in kilometers
the method used is the great-circle-distance with hypersine formula |
static double |
getDistance(TPVObject tpv1,
TPVObject tpv2)
calculates the distance between two
TPVObject in kilometersthe method used is the great-circle-distance with hypersine formula |
public static double getDistance(TPVObject tpv1, TPVObject tpv2)
TPVObject in kilometerstpv1 - - position 1tpv2 - - position 2public static double getDistance(double x1,
double x2,
double y1,
double y2)
x1 - - longitude of position 1x2 - - longitude of position 2y1 - - latitude of position 1y2 - - latitude of position 2Copyright © 2011–2017 Taimos GmbH. All rights reserved.