Class GroundCoordinates

java.lang.Object
  |
  +--GroundCoordinates

public class GroundCoordinates
extends java.lang.Object

This class is used to store the ground coordinates of a terrain data segment the latitude and longitude of each corner of the terrain area are stored in arc-second units


Field Summary
static int LATITUDE
           
static int LONGITUDE
           
static double METERS_PER_NAUTICAL_MILE
           
static double METERS_PER_NAUTICAL_SECOND
           
static double NAUTICAL_SECONDS_PER_METER
           
 double[] ne
           
 double[] nw
           
 double[] se
           
static double SECONDS_PER_NAUTICAL_MILE
           
 double[] sw
           
 
Constructor Summary
GroundCoordinates()
          create ground coordinate object with all values set to null
 
Method Summary
 float lengthMeters()
          calculate the length (east to west) of the segment
 float lengthSeconds()
          calculate the length (east to west) of the segment
 java.lang.String toString()
          convert to string for display purposes
 float widthMeters()
          calculate the width (south to north ) of the segment
 float widthSeconds()
          calculate the width (south to north ) of the segment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sw

public double[] sw

nw

public double[] nw

ne

public double[] ne

se

public double[] se

LONGITUDE

public static final int LONGITUDE
See Also:
Constant Field Values

LATITUDE

public static final int LATITUDE
See Also:
Constant Field Values

SECONDS_PER_NAUTICAL_MILE

public static final double SECONDS_PER_NAUTICAL_MILE
See Also:
Constant Field Values

METERS_PER_NAUTICAL_MILE

public static final double METERS_PER_NAUTICAL_MILE
See Also:
Constant Field Values

METERS_PER_NAUTICAL_SECOND

public static final double METERS_PER_NAUTICAL_SECOND
See Also:
Constant Field Values

NAUTICAL_SECONDS_PER_METER

public static final double NAUTICAL_SECONDS_PER_METER
See Also:
Constant Field Values
Constructor Detail

GroundCoordinates

public GroundCoordinates()
create ground coordinate object with all values set to null

Method Detail

lengthMeters

public float lengthMeters()
calculate the length (east to west) of the segment

Returns:
the east-west distance in meters

widthMeters

public float widthMeters()
calculate the width (south to north ) of the segment

Returns:
the south to north distance in meters

lengthSeconds

public float lengthSeconds()
calculate the length (east to west) of the segment

Returns:
the east-west distance in seconds

widthSeconds

public float widthSeconds()
calculate the width (south to north ) of the segment

Returns:
the south to north distance in seconds

toString

public java.lang.String toString()
convert to string for display purposes

Overrides:
toString in class java.lang.Object
Returns:
string representation of the coordinates