edu.stanford.rsl.konrad.geometry.shapes.simple
Class Point2D

java.lang.Object
  extended by edu.stanford.rsl.konrad.geometry.shapes.simple.PointND
      extended by edu.stanford.rsl.konrad.geometry.shapes.simple.Point2D
All Implemented Interfaces:
Transformable, java.io.Serializable

public class Point2D
extends PointND

Wrapper class to model a 2D point.

Author:
akmaier
See Also:
Serialized Form

Constructor Summary
Point2D(double... 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 edu.stanford.rsl.konrad.geometry.shapes.simple.PointND
applyTransform, clone, equals, euclideanDistance, get, getAbstractVector, getCoordinates, getDimension, set, setCoordinates, toString, updateIfHigher, updateIfLower
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point2D

public Point2D(double... coordinates)
Method Detail

getX

public double getX()
returns the x coordinate

Returns:
x

getY

public double getY()
returns the y coordinate

Returns:
y

setX

public void setX(double x)
sets the x coordinate

Parameters:
x - coordinate

setY

public void setY(double y)
sets the y coordinate

Parameters:
y - coordinate