uk.ac.leeds.ccg.andyt.gws.utilities
Class Point2DBigDecimal

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.gws.utilities.Point2DBigDecimal

public class Point2DBigDecimal
extends java.lang.Object

A class like Point2D but with coordinates stored as BigDecimals.


Constructor Summary
Point2DBigDecimal(java.math.BigDecimal x, java.math.BigDecimal y)
          Creates a new instance of BigDecimalPoint
Point2DBigDecimal(java.awt.geom.Point2D.Double point2DDouble)
          Creates a new instance of BigDecimalPoint
 
Method Summary
 java.math.BigDecimal distance(Point2DBigDecimal point2DBigDecimal, int decimalPlaces)
          Returns the distance form Point2DBigDecimal to this as a BigDecimal
 java.math.BigDecimal getX()
           
 java.math.BigDecimal getY()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point2DBigDecimal

public Point2DBigDecimal(java.math.BigDecimal x,
                         java.math.BigDecimal y)
Creates a new instance of BigDecimalPoint


Point2DBigDecimal

public Point2DBigDecimal(java.awt.geom.Point2D.Double point2DDouble)
Creates a new instance of BigDecimalPoint

Method Detail

getX

public java.math.BigDecimal getX()

getY

public java.math.BigDecimal getY()

distance

public java.math.BigDecimal distance(Point2DBigDecimal point2DBigDecimal,
                                     int decimalPlaces)
Returns the distance form Point2DBigDecimal to this as a BigDecimal