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:
Grant Ingersoll 2010-01-04 19:29:41 +00:00
parent 33df44a6ef
commit fc9a0a78c9
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ public class DistanceUtils {
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 KM_TO_MILES = 0.621371192;
public static final double MILES_TO_KM = 1.609344;
/**
* Calculate the p-norm (i.e. length) between two vectors
*