com.maryanovsky.gwtutils.client.geom
Class DoublePoint

java.lang.Object
  extended by com.maryanovsky.gwtutils.client.geom.DoublePoint
All Implemented Interfaces:
DoublePointView

public class DoublePoint
extends Object
implements DoublePointView

A 2D coordinate with double precision coordinates.

Author:
Maryanovsky Alexander

Constructor Summary
DoublePoint(double x, double y)
          Creates a new DoublePoint at the specified coordinates.
 
Method Summary
 double getX()
          Returns the X coordinate.
 double getY()
          Returns the Y coordinate.
 void setX(double x)
          Sets the X coordinate.
 void setY(double y)
          Sets the Y coordinate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoublePoint

public DoublePoint(double x,
                   double y)
Creates a new DoublePoint at the specified coordinates.

Method Detail

getX

public double getX()
Returns the X coordinate.

Specified by:
getX in interface DoublePointView

getY

public double getY()
Returns the Y coordinate.

Specified by:
getY in interface DoublePointView

setX

public void setX(double x)
Sets the X coordinate.


setY

public void setY(double y)
Sets the Y coordinate.