|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.geometry.shapes.simple.PointND
edu.stanford.rsl.konrad.geometry.shapes.simple.Point2D
public class Point2D
Wrapper class to model a 2D point.
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 |
---|
public Point2D(double... coordinates)
Method Detail |
---|
public double getX()
public double getY()
public void setX(double x)
x
- coordinatepublic void setY(double y)
y
- coordinate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |