public class Unit extends CrsIdentifiable
CoordinateSystemAxis
.Modifier and Type | Class and Description |
---|---|
static class |
Unit.Type
Type of
Unit : Linear or Angular. |
Modifier and Type | Field and Description |
---|---|
static Unit |
DEGREE |
static Unit |
METER |
static Unit |
RADIAN |
static Unit |
UNKNOWN |
Constructor and Description |
---|
Unit(CrsId crsId,
String name,
Unit.Type type,
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. |
static Unit |
getFundamentalUnit(Unit.Type type)
Returns the fundamental unit for this type of
Unit . |
int |
hashCode() |
boolean |
isAngular()
Returns true if this
Unit is angular. |
String |
toString() |
getCrsId, getName
public static final Unit DEGREE
public static final Unit RADIAN
public static final Unit METER
public static final Unit UNKNOWN
public static Unit getFundamentalUnit(Unit.Type type)
Unit
.type
- the type of Unit
public double getConversionFactor()
Unit
to the fundamental unit
for this type of unit.public boolean isAngular()
Unit
is angular.public boolean equals(Object o)
equals
in class CrsIdentifiable
public int hashCode()
hashCode
in class CrsIdentifiable
Copyright © 2015 geolatte.org. All rights reserved.