|
||||||||||
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
edu.stanford.rsl.konrad.geometry.shapes.simple.VectorPoint3D
public class VectorPoint3D
Class to model a 3D point which contains a vector value. Point can be used to model a vector in space or a colored point in space.
Constructor Summary | |
---|---|
VectorPoint3D(double x,
double y,
double z,
double... vector)
Creates a new VectorPoint3D at coordinates (x, y, z). |
|
VectorPoint3D(double x,
double y,
double z,
SimpleVector vector)
Creates a new VectorPoint3D at coordinates (x, y, z). |
|
VectorPoint3D(PointND point,
double... vector)
Creates a new VectorPoint3D at point. |
|
VectorPoint3D(PointND point,
SimpleVector vector)
Creates a new VectorPoint3D at point. |
Method Summary | |
---|---|
SimpleVector |
getVector()
|
void |
setVector(SimpleVector vector)
|
Methods inherited from class edu.stanford.rsl.konrad.geometry.shapes.simple.Point3D |
---|
getX, getY, getZ, setX, setY, setZ |
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 VectorPoint3D(double x, double y, double z, double... vector)
x
- the x coordinatey
- the y coordinatez
- the z coordinatevector
- the vector as list of double valuespublic VectorPoint3D(double x, double y, double z, SimpleVector vector)
x
- the x coordinatey
- the y coordinatez
- the z coordinatevector
- the vector as SimpleVectorpublic VectorPoint3D(PointND point, SimpleVector vector)
point
- the pointvector
- the vector as SimpleVectorpublic VectorPoint3D(PointND point, double... vector)
point
- the pointvector
- the vector as list of double valuesMethod Detail |
---|
public SimpleVector getVector()
public void setVector(SimpleVector vector)
vector
- the vector to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |