uk.me.jstott.jcoord.ellipsoid
Class Ellipsoid

java.lang.Object
  extended by uk.me.jstott.jcoord.ellipsoid.Ellipsoid
Direct Known Subclasses:
Airy1830Ellipsoid, AustralianNational1966Ellipsoid, Bessel1841Ellipsoid, Clarke1866Ellipsoid, Clarke1880Ellipsoid, EverestEllipsoid, Fischer1960Ellipsoid, Fischer1968Ellipsoid, GRS67Ellipsoid, GRS75Ellipsoid, GRS80Ellipsoid, Hayford1910Ellipsoid, Helmert1906Ellipsoid, Hough1956Ellipsoid, IERS1989Ellipsoid, InternationalEllipsoid, Krassovsky1940Ellipsoid, ModifiedAiryEllipsoid, ModifiedEverestEllipsoid, NewInternational1967Ellipsoid, SouthAmerican1969Ellipsoid, WGS60Ellipsoid, WGS66Ellipsoid, WGS72Ellipsoid, WGS84Ellipsoid

public abstract class Ellipsoid
extends java.lang.Object

This class is part of the Jcoord package. Visit the Jcoord website for more information.

Class to represent a reference ellipsoid.

(c) 2006 Jonathan Stott

Created on 02-Apr-2006

Since:
1.1
Version:
1.1
Author:
Jonathan Stott

Constructor Summary
Ellipsoid(double semiMajorAxis, double semiMinorAxis)
          Create a new ellipsoid with the given parameters.
Ellipsoid(double semiMajorAxis, double semiMinorAxis, double eccentricitySquared)
          Create a new ellipsoid with the given parameters.
 
Method Summary
 double getEccentricitySquared()
          Get the eccentricity squared.
 double getFlattening()
          Get the flattening.
 double getSemiMajorAxis()
          Get the semi major axis.
 double getSemiMinorAxis()
          Get the semi minor axis.
 java.lang.String toString()
          Get a String representation of the Ellipsoid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ellipsoid

public Ellipsoid(double semiMajorAxis,
                 double semiMinorAxis)
Create a new ellipsoid with the given parameters.

Parameters:
semiMajorAxis - the semi major axis.
semiMinorAxis - the semi minor axis.
Since:
1.1

Ellipsoid

public Ellipsoid(double semiMajorAxis,
                 double semiMinorAxis,
                 double eccentricitySquared)
          throws java.lang.IllegalArgumentException
Create a new ellipsoid with the given parameters. If either the semiMinorAxis or the eccentricitySquared are Double.NaN, then that value is calculated from the other two parameters. An IllegalArgumentException is thrown if both the semiMinorAxis and the eccentricitySquared are Double.NaN.

Parameters:
semiMajorAxis - the semi major axis.
semiMinorAxis - the semi minor axis.
eccentricitySquared - the eccentricity squared.
Throws:
java.lang.IllegalArgumentException - is both the semiMinorAxis and eccentricitySquared parameters are Double.NaN.
Since:
1.1
Method Detail

toString

public java.lang.String toString()
Get a String representation of the Ellipsoid

Overrides:
toString in class java.lang.Object
Returns:
a String representation of the Ellipsoid
Since:
1.1

getEccentricitySquared

public double getEccentricitySquared()
Get the eccentricity squared.

Returns:
Returns the eccentricitySquared.
Since:
1.1

getFlattening

public double getFlattening()
Get the flattening.

Returns:
Returns the flattening.
Since:
1.1

getSemiMajorAxis

public double getSemiMajorAxis()
Get the semi major axis.

Returns:
Returns the semiMajorAxis.
Since:
1.1

getSemiMinorAxis

public double getSemiMinorAxis()
Get the semi minor axis.

Returns:
Returns the semiMinorAxis.
Since:
1.1