mirror of https://github.com/apache/lucene.git
some useful constants
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@895750 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
33df44a6ef
commit
fc9a0a78c9
|
@ -27,6 +27,9 @@ public class DistanceUtils {
|
||||||
public static final double DEGREES_TO_RADIANS = Math.PI / 180.0;
|
public static final double DEGREES_TO_RADIANS = Math.PI / 180.0;
|
||||||
public static final double RADIANS_TO_DEGREES = 180.0 / Math.PI;
|
public static final double RADIANS_TO_DEGREES = 180.0 / Math.PI;
|
||||||
|
|
||||||
|
public static final double KM_TO_MILES = 0.621371192;
|
||||||
|
public static final double MILES_TO_KM = 1.609344;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculate the p-norm (i.e. length) between two vectors
|
* Calculate the p-norm (i.e. length) between two vectors
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue