public abstract class Unit extends CrsIdentifiable
CoordinateSystemAxis
.Modifier and Type | Field and Description |
---|---|
static AngularUnit |
DEGREE |
static LinearUnit |
METER |
static AngularUnit |
RADIAN |
static AngularUnit |
UNKNOWN_Angular |
static LinearUnit |
UNKNOWN_LINEAR |
Constructor and Description |
---|
Unit(CrsId crsId,
String name,
double conversionFactor)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double |
getConversionFactor()
Returns the conversion factor: the scalar value that converts a value of this
Unit to the fundamental unit
for this type of unit. |
abstract Unit |
getFundamentalUnit()
Returns the fundamental unit for this type of
Unit . |
int |
hashCode() |
abstract boolean |
isAngular()
Returns true if this
Unit is angular. |
String |
toString() |
getCrsId, getName
public static final AngularUnit DEGREE
public static final AngularUnit RADIAN
public static final LinearUnit METER
public static final LinearUnit UNKNOWN_LINEAR
public static final AngularUnit UNKNOWN_Angular
public abstract Unit getFundamentalUnit()
Unit
.public double getConversionFactor()
Unit
to the fundamental unit
for this type of unit.public abstract boolean isAngular()
Unit
is angular.public boolean equals(Object o)
equals
in class CrsIdentifiable
public int hashCode()
hashCode
in class CrsIdentifiable
Copyright © 2021 geolatte.org. All rights reserved.