jasi.sim.geo.spherical
Class Latitude

java.lang.Object
  extended by jasi.sim.basic.value.AbstractSimValueType
      extended by jasi.sim.basic.value.AbstractComparableObject<T>
          extended by jasi.sim.geo.ComparableGeoObject<Arc>
              extended by jasi.sim.geo.spherical.Arc
                  extended by jasi.sim.geo.spherical.Latitude
All Implemented Interfaces:
ExtendedComparable<Arc>, SimValue, Geometric, java.io.Serializable, java.lang.Comparable<Arc>

public final class Latitude
extends Arc

Latitude is the spherical distance of a location to the equator. Its value ranges from 0 to 90 north positive, south negative.

See Also:
Serialized Form

Field Summary
static Latitude EQUATOR
          Latitude of equator.
static Latitude NORTH_POLE
          Latitude of north pole.
static Latitude SOUTH_POLE
          Latitude of south pole.
 
Fields inherited from class jasi.sim.geo.spherical.Arc
CIRCLE, HALF_CIRCLE, RECTANGLE, ZERO
 
Fields inherited from interface jasi.sim.geo.Geometric
BEGIN, END, MIDLE
 
Constructor Summary
Latitude(double arc)
          Constructor of a latitude.
Latitude(Latitude arc)
          Constructor of a latitude.
Latitude(java.lang.String s)
          Constructor of a latitude.
 
Method Summary
protected  double convert(java.lang.String s)
          Convert that string to an latitude value.
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
protected  double fit(double arc)
          Check that arc length is inside the latitude section.
 double getLength()
          Get length of this latitude.
 int hashCode()
          Returns a hash code value for the object.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class jasi.sim.geo.spherical.Arc
acos, add, amount, asin, compareTo, cos, length, minus, sin, times, toDegree, toRadians, toRadians
 
Methods inherited from class jasi.sim.basic.value.AbstractComparableObject
isEQ, isGE, isGT, isLE, isLT, isNE
 
Methods inherited from class jasi.sim.basic.value.AbstractSimValueType
getContent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jasi.sim.basic.value.SimValue
getContent
 

Field Detail

EQUATOR

public static final Latitude EQUATOR
Latitude of equator.


NORTH_POLE

public static final Latitude NORTH_POLE
Latitude of north pole.


SOUTH_POLE

public static final Latitude SOUTH_POLE
Latitude of south pole.

Constructor Detail

Latitude

public Latitude(double arc)
Constructor of a latitude.

Parameters:
arc - The arc.

Latitude

public Latitude(java.lang.String s)
Constructor of a latitude.

Parameters:
s - The string representation of a latitude.

Latitude

public Latitude(Latitude arc)
Constructor of a latitude.

Parameters:
arc - The arc.
Method Detail

getLength

public double getLength()
Get length of this latitude.

Returns:
The latitude.

fit

protected double fit(double arc)
Check that arc length is inside the latitude section.

Overrides:
fit in class Arc
Parameters:
arc - That arc length.
Returns:
The arc length in the interval (-pi/2,pi/2).

convert

protected double convert(java.lang.String s)
Convert that string to an latitude value.

Overrides:
convert in class Arc
Parameters:
s - The string representing a latitude.
Returns:
The latitude value

equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Arc
Parameters:
o - That object which is compared with this object.
Returns:
True, if this object is the same as that object.

hashCode

public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hash tables.

Overrides:
hashCode in class Arc
Returns:
A hash code value for this object.

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class Arc
Returns:
The string.