mccombe.mapping
Class ENPair

java.lang.Object
  extended by mccombe.mapping.ENPair

public class ENPair
extends java.lang.Object

An ENPair represents a 2-dimensional coordinate pair used to define position on a map in terms of "easting" and "northing" distances.


Constructor Summary
ENPair()
          Creates a new instance of ENPair
ENPair(double east, double north)
          Create an ENPair from two double values
 
Method Summary
 double east()
          Access the Easting distance
 double north()
          Access the Northing distance
 java.lang.String toString()
          Provide a String representation of the ENPair
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ENPair

public ENPair()
Creates a new instance of ENPair


ENPair

public ENPair(double east,
              double north)
Create an ENPair from two double values

Parameters:
east - Easting distance (m)
north - Northing distance (m)
Method Detail

toString

public java.lang.String toString()
Provide a String representation of the ENPair

Overrides:
toString in class java.lang.Object
Returns:
A String showing Easting and Northing distances

east

public double east()
Access the Easting distance

Returns:
the Easting distance(m)

north

public double north()
Access the Northing distance

Returns:
the Northing distance (m)