courselog.gpsutils.jcoord
Class RefEll

java.lang.Object
  extended by courselog.gpsutils.jcoord.RefEll

public class RefEll
extends java.lang.Object

Class to represent a reference ellipsoid. Also provides a number of pre-determined reference ellipsoids as constants. (c) 2006 Jonathan Stott Created on 11-Feb-2006

Since:
1.0

Field Summary
static RefEll AIRY_1830
          Airy 1830 Reference Ellipsoid
static RefEll WGS84
          WGS84 Reference Ellipsoid
 
Constructor Summary
RefEll(double maj, double min)
          Create a new reference ellipsoid
 
Method Summary
 double getEcc()
          Return the eccentricity.
 double getMaj()
          Return the semi-major axis.
 double getMin()
          Return the semi-minor axis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AIRY_1830

public static final RefEll AIRY_1830
Airy 1830 Reference Ellipsoid


WGS84

public static final RefEll WGS84
WGS84 Reference Ellipsoid

Constructor Detail

RefEll

public RefEll(double maj,
              double min)
Create a new reference ellipsoid

Parameters:
maj - semi-major axis
min - semi-minor axis
Since:
1.0
Method Detail

getMaj

public double getMaj()
Return the semi-major axis.

Returns:
the semi-major axis
Since:
1.0

getMin

public double getMin()
Return the semi-minor axis

Returns:
the semi-minor axis
Since:
1.0

getEcc

public double getEcc()
Return the eccentricity.

Returns:
the eccentricity
Since:
1.0