|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Angle provides the base operations for setting, getting and manipulating
angular measurement values.
| Method Summary | |
void |
add(Angle value)
Add to this Angle the passed Angle. |
void |
add(DecimalAngleUnit units,
double value)
Add to this Angle the double value in the specified DecimalAngleUnits. |
void |
add(SexagesimalAngleUnit units,
int value)
Add to this Angle the value in the specified SexagesimalAngleUnits. |
void |
changeSign()
Change the sign of this Angle. |
void |
clear()
Set the value of this Angle to 0. |
int |
compareTo(Angle that)
Compare this object with the argument for order. |
int |
compareTo(java.lang.Object obj)
Compare this object with the argument for order. |
double |
get(DecimalAngleUnit units)
Return the double value of this Angle in the specified DecimalAngleUnits. |
AngleSign |
getSign()
Get the AngleSign of this Angle. |
long |
getValueInMicroseconds(SexagesimalAngleType type)
Return the long value of this Angle in units of microseconds of
the specified SexagesimalAngleType. |
void |
normalize(AngleNorm option)
Normalize the value of this DecimalAngle as specified by the option field. |
void |
set(Angle ang)
Set this Angle to the specified value. |
void |
set(DecimalAngleUnit units,
double value)
Set the value of this Angle to the specified DecimalAngleUnits value. |
void |
set(SexagesimalAngleType type,
AngleSign sign,
double unitsValue)
Set this Angle to the specified value in the SexagesimalAngleType. |
void |
set(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
double minutes)
Set this Angle to the specified value in the SexagesimalAngleType. |
void |
set(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
double seconds)
Set this Angle to the specified value in the SexagesimalAngleType. |
void |
set(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
int seconds,
int microseconds)
Set this Angle to the specified value in the SexagesimalAngleType. |
void |
setValueInMicroseconds(SexagesimalAngleType type,
long value)
Set this Angle to the specified value of microseconds of
the SexagesimalAngleType. |
void |
subtract(Angle value)
Subtract from this Angle the passed Angle. |
| Method Detail |
public void set(Angle ang)
Angle to the specified value.
ang - the Angle object to duplicate.public void clear()
Angle to 0.
public void changeSign()
Angle.
public AngleSign getSign()
AngleSign of this Angle.
public void add(Angle value)
Angle the passed Angle.
value - an Angle.public void subtract(Angle value)
Angle the passed Angle.
value - an Angle.public void normalize(AngleNorm option)
DecimalAngle as specified by the option field.
option - the AngleNorm identifier
public void set(DecimalAngleUnit units,
double value)
Angle to the specified DecimalAngleUnits value.
units - the DecimalAngleUnits.value - the double value.public double get(DecimalAngleUnit units)
Angle in the specified DecimalAngleUnits.
units - the DecimalAngleUnits.
Angle.
public void add(DecimalAngleUnit units,
double value)
Angle the double value in the specified DecimalAngleUnits.
units - the DecimalAngleUnits.value - the double value.
public void set(SexagesimalAngleType type,
AngleSign sign,
double unitsValue)
Angle to the specified value in the SexagesimalAngleType.
type - the SexagesimalAngleType.sign - the AngleSign.unitsValue - the double value of the primary units of the SexagesimalAngleType.
public void set(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
double minutes)
Angle to the specified value in the SexagesimalAngleType.
type - the SexagesimalAngleType.sign - the AngleSign.unitsValue - the integer value of the primary units of the SexagesimalAngleType.minutes - the double value of the minutes sub-unit of the SexagesimalAngleType.
public void set(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
double seconds)
Angle to the specified value in the SexagesimalAngleType.
type - the SexagesimalAngleType.sign - the AngleSign.unitsValue - the integer value of the primary units of the SexagesimalAngleType.minutes - the integer value of the minutes sub-unit of the SexagesimalAngleType.seconds - the double value of the seconds sub-unit of the SexagesimalAngleType.
public void set(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
int seconds,
int microseconds)
Angle to the specified value in the SexagesimalAngleType.
type - the SexagesimalAngleType.sign - the AngleSign.unitsValue - the integer value of the primary units of the SexagesimalAngleType.minutes - the integer value of the minutes sub-unit of the SexagesimalAngleType.seconds - the integer value of the seconds sub-unit of the SexagesimalAngleType.microseconds - the integer value of the microseconds sub-unit of the
SexagesimalAngleType.
public void setValueInMicroseconds(SexagesimalAngleType type,
long value)
Angle to the specified value of microseconds of
the SexagesimalAngleType. (i.e. either in microseconds of
of degree or microseconds of hour)
type - the SexagesimalAngleType.value - the long value in microseconds to set for this Angle.public long getValueInMicroseconds(SexagesimalAngleType type)
Angle in units of microseconds of
the specified SexagesimalAngleType. (i.e. either in microseconds of
of degree or microseconds of hour)
type - the SexagesimalAngleType.
Angle in microseconds.
public void add(SexagesimalAngleUnit units,
int value)
Angle the value in the specified SexagesimalAngleUnits.
units - the SexagesimalAngleUnits.value - the integer value.public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - the Object to compare
ClassCastException - if the argument is not an
Angle.public int compareTo(Angle that)
that - the Angle to compare
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||