uk.me.jstott.coordconv
Class OSGBGridReference

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

public class OSGBGridReference
extends java.lang.Object

An object to represent an OSGB easting and northing pair

Since:
0.1
Version:
0.2
Author:
Jonathan Stott

Constructor Summary
OSGBGridReference(double easting, double northing)
          Construct an easting and northing pair
 
Method Summary
 double getEasting()
          Get the easting
 double getNorthing()
          Get the northing
 void setEasting(double i)
          Set the easting
 void setNorthing(double i)
          Set the northing
 java.lang.String toString()
          Return a string representation of the easting and northing in the form (easting,northing)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSGBGridReference

public OSGBGridReference(double easting,
                         double northing)
Construct an easting and northing pair

Parameters:
easting - the easting in metres
northing - the northing in metres
Method Detail

getEasting

public double getEasting()
Get the easting

Returns:
the easting

getNorthing

public double getNorthing()
Get the northing

Returns:
the northing

setEasting

public void setEasting(double i)
Set the easting

Parameters:
i - the new value of the easting

setNorthing

public void setNorthing(double i)
Set the northing

Parameters:
i - the new value of the northing

toString

public java.lang.String toString()
Return a string representation of the easting and northing in the form (easting,northing)