uk.me.jstott.coordconv
Class ReferenceEllipsoid

java.lang.Object
  extended byuk.me.jstott.coordconv.ReferenceEllipsoid

public class ReferenceEllipsoid
extends java.lang.Object

A class to represent a reference ellipsoid

Since:
0.2
Version:
0.2
Author:
Jonathan Stott

Constructor Summary
ReferenceEllipsoid(java.lang.String inName, double inSemiMajorAxis, double inSemiMinorAxis)
          Create a new reference ellipsoid from the semi-major (equatorial radius) and semi-minor axes.
 
Method Summary
 double getEccentricitySquared()
          Get the eccentricity squared of the reference ellipsoid
 double getEquatorialRadius()
          Get the equatorial radius (semi-major axis) of the reference ellipsoid
 java.lang.String getName()
          Get the name of the reference ellipsoid
 double getSemiMajorAxis()
          Get the semi-major axis (equatorial radius) of the reference ellipsoid
 double getSemiMinorAxis()
          Get the semi-minor axis of the reference ellipsoid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceEllipsoid

public ReferenceEllipsoid(java.lang.String inName,
                          double inSemiMajorAxis,
                          double inSemiMinorAxis)
Create a new reference ellipsoid from the semi-major (equatorial radius) and semi-minor axes. The semi-minor axis of the ellipsoid can be calculated from the eccentricity squared (e2) and the semi-major axis (a2) by finding sqrt(-e2a2 + a2)

Parameters:
inName - the name of the reference ellipsoid
inSemiMajorAxis -
inSemiMinorAxis -
Method Detail

getSemiMinorAxis

public double getSemiMinorAxis()
Get the semi-minor axis of the reference ellipsoid

Returns:

getEccentricitySquared

public double getEccentricitySquared()
Get the eccentricity squared of the reference ellipsoid

Returns:

getSemiMajorAxis

public double getSemiMajorAxis()
Get the semi-major axis (equatorial radius) of the reference ellipsoid

Returns:

getEquatorialRadius

public double getEquatorialRadius()
Get the equatorial radius (semi-major axis) of the reference ellipsoid

Returns:

getName

public java.lang.String getName()
Get the name of the reference ellipsoid

Returns: