java.lang.Object |
↳ |
java.lang.Enum<E extends java.lang.Enum<E>> |
|
↳ |
com.commsignia.v2x.utils.units.DegreeUnit |
Class Overview
Utility class for specifying degree units
Summary
Enum Values |
DegreeUnit |
DEG |
Specified in conventional degrees
|
DegreeUnit |
DEG_0_01 |
Specified in units of 0.01 degrees
|
DegreeUnit |
DEG_0_0125 |
Specified in units of 0.0125 degrees
|
DegreeUnit |
DEG_0_1 |
Specified in units of 0.1 degrees
|
DegreeUnit |
DEG_1_5_POSNEG |
Specified in units of 1.5 degrees (-180..180)
|
[Expand]
Inherited Methods |
From class
java.lang.Enum
final
Object
|
clone()
|
int
|
compareTo(Object arg0)
|
final
int
|
compareTo(E arg0)
|
final
boolean
|
equals(Object arg0)
|
final
void
|
finalize()
|
final
Class<E>
|
getDeclaringClass()
|
final
int
|
hashCode()
|
final
String
|
name()
|
final
int
|
ordinal()
|
String
|
toString()
|
static
<T extends Enum<T>>
T
|
valueOf(Class<T> arg0, String arg1)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
java.lang.Comparable
abstract
int
|
compareTo(T arg0)
|
|
Enum Values
public
static
final
DegreeUnit
DEG
Specified in conventional degrees
public
static
final
DegreeUnit
DEG_0_01
Specified in units of 0.01 degrees
public
static
final
DegreeUnit
DEG_0_0125
Specified in units of 0.0125 degrees
public
static
final
DegreeUnit
DEG_0_1
Specified in units of 0.1 degrees
public
static
final
DegreeUnit
DEG_1_5_POSNEG
Specified in units of 1.5 degrees (-180..180)
Public Methods
public
abstract
double
convert
(double d, DegreeUnit u)
Convert the given degree in the given unit to this unit.
Parameters
d |
degree value |
u |
degree unit |
Returns
- degree value in this unit
Protected Methods
protected
abstract
double
toDeg
(double d)
protected
abstract
double
toDeg0_01
(double d)
protected
abstract
double
toDeg0_0125
(double d)
protected
abstract
double
toDeg0_1
(double d)
protected
abstract
double
toDeg1_5_PosNeg
(double d)