@EqualsAndHashCode @CompileStatic class Metric extends Object
Defines a metric for calculating Distance in radians. See Distance.inRadians
| Type | Name and description |
|---|---|
static Metric |
KILOMETERSthe radius of the earth in kilometers |
static Metric |
MILESthe radius of the earth in miles |
static Metric |
NEUTRALa neutral radius |
double |
multiplier |
| Constructor and description |
|---|
Metric(double multiplier)Constructs a metric for the given multiplier |
Groovy Documentation