|
||||||||||
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.Point3D
public class Point3D
Wrapper class to model a 3D point.
Constructor Summary | |
---|---|
Point3D(double... coordinates)
Creates a new 3D Point from a list of coordinates. |
|
Point3D(PointND point)
Copy constructor. |
Method Summary | |
---|---|
double |
getX()
returns the x coordinate |
double |
getY()
returns the y coordinate |
double |
getZ()
returns the z coordinate |
void |
setX(double x)
sets the x coordinate |
void |
setY(double y)
sets the y coordinate |
void |
setZ(double z)
sets the z 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 Point3D(double... coordinates)
coordinates
- public Point3D(PointND point)
point
- Method Detail |
---|
public double getX()
public double getY()
public double getZ()
public void setX(double x)
x
- coordinatepublic void setY(double y)
y
- coordinatepublic void setZ(double z)
z
- coordinate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |