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

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

public class VectorPoint3D
extends Point3D

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.

Author:
akmaier
See Also:
Serialized Form

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

VectorPoint3D

public VectorPoint3D(double x,
                     double y,
                     double z,
                     double... vector)
Creates a new VectorPoint3D at coordinates (x, y, z).

Parameters:
x - the x coordinate
y - the y coordinate
z - the z coordinate
vector - the vector as list of double values

VectorPoint3D

public VectorPoint3D(double x,
                     double y,
                     double z,
                     SimpleVector vector)
Creates a new VectorPoint3D at coordinates (x, y, z).

Parameters:
x - the x coordinate
y - the y coordinate
z - the z coordinate
vector - the vector as SimpleVector

VectorPoint3D

public VectorPoint3D(PointND point,
                     SimpleVector vector)
Creates a new VectorPoint3D at point.

Parameters:
point - the point
vector - the vector as SimpleVector

VectorPoint3D

public VectorPoint3D(PointND point,
                     double... vector)
Creates a new VectorPoint3D at point.

Parameters:
point - the point
vector - the vector as list of double values
Method Detail

getVector

public SimpleVector getVector()
Returns:
the vector

setVector

public void setVector(SimpleVector vector)
Parameters:
vector - the vector to set