|
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.Latitude
A subclass of DecimalAngle, a latitude is an angle that is restricted in value
to be within a half revolution of arc. A latitude is typically used as a component of a
spherical coordinate system.
By convention, latitude directions are measured:
Angle,
DecimalAngle,
DecimalAngleUnit,
Longitude,
SexagesimalAngleType,
SexagesimalAngleUnit| Field Summary | |
static AngleSign |
NORTH
Constant identifier indicating a positive direction of the Latitude. |
static AngleSign |
SOUTH
Constant identifier indicating a negative direction of the Latitude. |
| Fields inherited from class org.jeospace.measure.angle.DecimalAngle |
angle |
| Constructor Summary | |
Latitude()
Construct a Latitude initialized to a value of 0. |
|
Latitude(Angle ang)
Construct a Latitude initialized to the specified value. |
|
Latitude(DecimalAngleUnit units,
double value)
Construct a Latitude initialized to the value and units specified. |
|
Latitude(SexagesimalAngleType type,
AngleSign sign,
double unitsValue)
Construct a Latitude initialized to the value and units specified. |
|
Latitude(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
double minutes)
Construct a Latitude initialized to the value and units specified. |
|
Latitude(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
double seconds)
Construct a Latitude initialized to the value and units specified. |
|
Latitude(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
int seconds,
int microseconds)
Construct a Latitude initialized to the value and units specified. |
|
| Method Summary | |
void |
add(Angle ang)
Add to this Latitude the passed Angle. |
void |
add(DecimalAngleUnit units,
double value)
Add to this Latitude the double value in the specified DecimalAngleUnits. |
void |
add(SexagesimalAngleUnit units,
int value)
Add to this Latitude the value in the specified SexagesimalAngleUnits. |
boolean |
addCheckRollover(Angle ang)
Add to this Latitude object the passed Angle object. |
boolean |
addCheckRollover(DecimalAngleUnit units,
double value)
Add to this Latitude the double value in the specified DecimalAngleUnits. |
boolean |
addCheckRollover(SexagesimalAngleUnit units,
int value)
Add to this Latitude the value in the specified SexagesimalAngleUnits. |
java.lang.Object |
clone()
Return a copy of this Latitude object. |
boolean |
equals(java.lang.Object obj)
Compare two Latitudes for equality. |
void |
normalize(AngleNorm option)
Overriding DecimalAngle, this method does nothing. |
protected boolean |
normalizeCheckRollover()
Normalize the value of this Latitude object to
a value that is +/- 90 degrees ( Math.PI/2 radians ) or less. |
void |
set(Angle ang)
Set this Latitude to the specified value. |
void |
set(DecimalAngleUnit units,
double value)
Set the value of this Latitude to the specified DecimalAngleUnits value. |
void |
set(SexagesimalAngleType type,
AngleSign sign,
double unitsValue)
Set this Latitude to the specified value in the SexagesimalAngleType. |
void |
set(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
double minutes)
Set this Latitude to the specified value in the SexagesimalAngleType. |
void |
set(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
double seconds)
Set this Latitude to the specified value in the SexagesimalAngleType. |
void |
set(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
int seconds,
int microseconds)
Set this Latitude to the specified value in the SexagesimalAngleType. |
void |
setValueInMicroseconds(SexagesimalAngleType type,
long value)
Set this Latitude to the specified value of microseconds of
the SexagesimalAngleType. |
void |
subtract(Angle ang)
Subtract from this Latitude 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 |
public static final AngleSign NORTH
Latitude.
public static final AngleSign SOUTH
Latitude.
| Constructor Detail |
public Latitude()
Latitude initialized to a value of 0.
public Latitude(Angle ang)
Latitude initialized to the specified value.
ang - the Angle object to duplicate.
public Latitude(DecimalAngleUnit units,
double value)
Latitude initialized to the value and units specified.
units - the DecimalAngleUnits of value being input.value - the input value
public Latitude(SexagesimalAngleType type,
AngleSign sign,
double unitsValue)
Latitude 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 Latitude(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
double minutes)
Latitude 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 Latitude(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
double seconds)
Latitude 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 Latitude(SexagesimalAngleType type,
AngleSign sign,
int unitsValue,
int minutes,
int seconds,
int microseconds)
Latitude 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)
Latitude to the specified value.
set in interface Angleset in class DecimalAngleang - the Angle object to duplicate.public void add(Angle ang)
Latitude the passed Angle.
add in interface Angleadd in class DecimalAngleang - an Angle.public void subtract(Angle ang)
Latitude the passed Angle.
subtract in interface Anglesubtract in class DecimalAngleang - an Angle.
public void set(DecimalAngleUnit units,
double value)
Latitude 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)
Latitude 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)
Latitude 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)
Latitude 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)
Latitude 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)
Latitude 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)
Latitude 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)
Latitude the value in the specified SexagesimalAngleUnits.
add in interface Angleadd in class DecimalAngleunits - the SexagesimalAngleUnits.value - the integer value.
public boolean addCheckRollover(SexagesimalAngleUnit units,
int value)
Latitude the value in the specified SexagesimalAngleUnits.
units - the SexagesimalAngleUnits.value - the integer value.
Latitude would occur on a Longitude
180 degrees ( Math.PI radians ) opposite the original
Longitude.
public boolean addCheckRollover(DecimalAngleUnit units,
double value)
Latitude the double value in the specified DecimalAngleUnits.
units - the DecimalAngleUnits.value - the double value.
Latitude would occur on a Longitude
180 degrees ( Math.PI radians ) opposite the original
Longitude.public boolean addCheckRollover(Angle ang)
Latitude object the passed Angle object.
ang - an Angle object.
Latitude would occur on a Longitude
180 degrees ( Math.PI radians ) opposite the original
Longitude.protected boolean normalizeCheckRollover()
Latitude object to
a value that is +/- 90 degrees ( Math.PI/2 radians ) or less.
The resulting Latitude will represent the result
of traveling in the specified direction from the equator for
the specified number of degrees. ( e.g. )
Note: it is not necessary to invoke this method externally, as it is called internally for each method call that would modify the value of the angle.
Latitude would occur on a Longitude
180 degrees ( Math.PI radians ) opposite the original
Longitude.public void normalize(AngleNorm option)
DecimalAngle, this method does nothing. Latitudes
are automatically, internally normalized. Additionally, the AngleNorm
described normalization functions apply to full revolution angle types and will produce
unwanted results when applied to a half revolution angle type.
normalize in interface Anglenormalize in class DecimalAngleoption - the AngleNorm identifierpublic java.lang.Object clone()
Latitude object. Overrides Cloneable.
clone in class DecimalAngleLatitude object.public boolean equals(java.lang.Object obj)
Latitudes for equality. The result is true
if and only if the argument object is not null, is a Latitude object
and represents an angle of the same magnitude as this Latitude.
Two Latitude 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 Latitudes are the same;
false otherwise.
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||