@groovy.transform.EqualsAndHashCode @groovy.transform.CompileStatic class Metric extends java.lang.Object
Defines a metric for calculating Distance in radians. See Distance.inRadians }
Modifiers | Name | Description |
---|---|---|
private static Metric |
KILOMETERS |
the radius of the earth in kilometers * |
private static Metric |
MILES |
the radius of the earth in miles * |
private static Metric |
NEUTRAL |
a neutral radius * |
private double |
multiplier |
Type | Name and description |
---|---|
static Metric |
KILOMETERS the radius of the earth in kilometers * |
static Metric |
MILES the radius of the earth in miles * |
static Metric |
NEUTRAL a neutral radius * |
double |
multiplier |
Constructor and description |
---|
Metric
(double multiplier) Constructs a metric for the given multiplier |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
the radius of the earth in kilometers *
the radius of the earth in miles *
a neutral radius *
Groovy Documentation