|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.measure.angle.DecimalAngle
org.jeospace.measure.angle.Longitude
A subclass of DecimalAngle, a longitude is an angle that is always
normalized to a value within a full revolution of arc. The default normalization
option is set to AngleNorm.FULL_REVOLUTION. A longitude is typically
used as a component of an ellipsoidal or spherical coordinate system.
By convention ( and consistant with SEDRIS and IAU conventions ), longitude directions are measured:
Angle,
AngleNorm,
DecimalAngle,
DecimalAngleUnit,
Latitude,
SexagesimalAngleType,
SexagesimalAngleUnit| Field Summary | |
static AngleSign |
EAST
Constant identifier indicating a positive direction of the Longitude. |
protected AngleNorm |
norm
The default normalization option |
static AngleSign |
WEST
Constant identifier indicating a negative direction of the Longitude. |
| Fields inherited from class org.jeospace.measure.angle.DecimalAngle |
angle |
| Constructor Summary | |
Longitude()
Construct a Longitude initialized to a value of 0. |
|
Longitude(Angle ang)
Construct a Longitude initialized to the specified value. |
|
Longitude(DecimalAngleUnit units,
double value)
Construct a Longitude initialized to the value and units specified. |
|
Longitude(SexagesimalAngleType type,
AngleSign sign,
double unitsValue)
Construct a Longitude initialized to the value and units specified. |
|
Longitude(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
double minutes)
Construct a Longitude initialized to the value and units specified. |
|
Longitude(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
double seconds)
Construct a Longitude initialized to the value and units specified. |
|
Longitude(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
int seconds,
int microseconds)
Construct a Longitude initialized to the value and units specified. |
|
| Method Summary | |
void |
add(Angle ang)
Add to this Longitude the passed Angle. |
void |
add(DecimalAngleUnit units,
double value)
Add to this Longitude the double value in the specified DecimalAngleUnits. |
void |
add(SexagesimalAngleUnit units,
int value)
Add to this Longitude the value in the specified SexagesimalAngleUnits. |
java.lang.Object |
clone()
Return a copy of this Longitude object. |
boolean |
equals(java.lang.Object obj)
Compare two Longitudes for equality. |
void |
normalize(AngleNorm option)
Normalize the value of this Longitude as specified by the option field. |
void |
set(Angle ang)
Set this Longitude to the specified value. |
void |
set(DecimalAngleUnit units,
double value)
Set the value of this Longitude to the specified DecimalAngleUnits value. |
void |
set(SexagesimalAngleType type,
AngleSign sign,
double unitsValue)
Set this Longitude to the specified value in the SexagesimalAngleType. |
void |
set(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
double minutes)
Set this Longitude to the specified value in the SexagesimalAngleType. |
void |
set(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
double seconds)
Set this Longitude to the specified value in the SexagesimalAngleType. |
void |
set(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
int seconds,
int microseconds)
Set this Longitude to the specified value in the SexagesimalAngleType. |
void |
setValueInMicroseconds(SexagesimalAngleType type,
long value)
Set this Longitude to the specified value of microseconds of
the SexagesimalAngleType. |
void |
subtract(Angle ang)
Subtract from this Longitude the passed Angle. |
| Methods inherited from class org.jeospace.measure.angle.DecimalAngle |
changeSign, clear, compareTo, compareTo, get, getSign, getValueInMicroseconds, hashCode, normalizeDegrees, normalizeDegreesNegative, normalizeDegreesPositive, normalizeRadians, normalizeRadiansNegative, normalizeRadiansPositive, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected AngleNorm norm
public static final AngleSign EAST
Longitude.
public static final AngleSign WEST
Longitude.
| Constructor Detail |
public Longitude()
Longitude initialized to a value of 0.
public Longitude(Angle ang)
Longitude initialized to the specified value.
ang - the Angle object to duplicate.
public Longitude(DecimalAngleUnit units,
double value)
Longitude initialized to the value and units specified.
units - the DecimalAngleUnits of value being input.value - the input value
public Longitude(SexagesimalAngleType type,
AngleSign sign,
double unitsValue)
Longitude initialized to the value and units specified.
type - the SexagesimalAngleType.sign - the AngleSign.unitsValue - the double value of the primary units of the SexagesimalAngleType.
public Longitude(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
double minutes)
Longitude initialized to the value and units specified.
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 Longitude(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
double seconds)
Longitude initialized to the value and units specified.
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 Longitude(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
int seconds,
int microseconds)
Longitude initialized to the value and units specified.
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.| Method Detail |
public void set(Angle ang)
Longitude to the specified value.
set in interface Angleset in class DecimalAngleang - the Angle object to duplicate.public void add(Angle ang)
Longitude the passed Angle.
add in interface Angleadd in class DecimalAngleang - an Angle.public void subtract(Angle ang)
Longitude the passed Angle.
subtract in interface Anglesubtract in class DecimalAngleang - an Angle.
public void set(DecimalAngleUnit units,
double value)
Longitude to the specified DecimalAngleUnits value.
set in interface Angleset in class DecimalAngleunits - the DecimalAngleUnits.value - the double value.
public void add(DecimalAngleUnit units,
double value)
Longitude the double value in the specified DecimalAngleUnits.
add in interface Angleadd in class DecimalAngleunits - the DecimalAngleUnits.value - the double value.
public void set(SexagesimalAngleType type,
AngleSign sign,
double unitsValue)
Longitude to the specified value in the SexagesimalAngleType.
set in interface Angleset in class DecimalAngletype - 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)
Longitude to the specified value in the SexagesimalAngleType.
set in interface Angleset in class DecimalAngletype - 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)
Longitude to the specified value in the SexagesimalAngleType.
set in interface Angleset in class DecimalAngletype - 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)
Longitude to the specified value in the SexagesimalAngleType.
set in interface Angleset in class DecimalAngletype - 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)
Longitude to the specified value of microseconds of
the SexagesimalAngleType. (i.e. either in microseconds of
of degree or microseconds of hour)
setValueInMicroseconds in interface AnglesetValueInMicroseconds in class DecimalAngletype - the SexagesimalAngleType.value - the long value in microseconds to set for this Angle.
public void add(SexagesimalAngleUnit units,
int value)
Longitude the value in the specified SexagesimalAngleUnits.
add in interface Angleadd in class DecimalAngleunits - the SexagesimalAngleUnits.value - the integer value.public void normalize(AngleNorm option)
Longitude as specified by the option field.
The argument AngleNorm option will become the default normalization.
normalize in interface Anglenormalize in class DecimalAngleoption - the AngleNorm identifier. Values of AngleNorm.NONE
or null will be ignored - a longitude must be normalized.public java.lang.Object clone()
Longitude object. Overrides Cloneable.
clone in class DecimalAngleLongitude object.public boolean equals(java.lang.Object obj)
Longitudes for equality. The result is true
if and only if the argument object is not null, is a Longitude object
and represents an angle
of the same magnitude as this Longitude.
Two Longitude objects are equal only if the getAngle
method returns the same value for both.
equals in class DecimalAngleobj - the object to compare with
true if the Longitudes are the same;
false otherwise.
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||