nl.tudelft.simulation.language.d3
Class DirectedPoint

java.lang.Object
  extended by javax.vecmath.Tuple3d
      extended by javax.vecmath.Point3d
          extended by nl.tudelft.simulation.language.d3.CartesianPoint
              extended by nl.tudelft.simulation.language.d3.DirectedPoint
All Implemented Interfaces:
Serializable, Cloneable

public class DirectedPoint
extends CartesianPoint

The location object.

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.

See for project information www.simulation.tudelft.nl/language
License of use: Lesser General Public License (LGPL) , no warranty

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:54 $
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.vecmath.Tuple3d
x, y, z
 
Constructor Summary
DirectedPoint()
          constructs a new DirectedPoint
DirectedPoint(DirectedPoint location)
          constructs a new DirectedPoint
DirectedPoint(double[] xyz)
          constructs a new DirectedPoint
DirectedPoint(double x, double y, double z)
          constructs a new DirectedPoint
DirectedPoint(double x, double y, double z, double rotX, double rotY, double rotZ)
          constructs a new DirectedPoint
DirectedPoint(Point2D point2D)
          constructs a new DirectedPoint
DirectedPoint(Point2D point2D, double rotZ)
          constructs a new DirectedPoint
DirectedPoint(Point3d cartesianPoint)
          constructs a new DirectedPoint
DirectedPoint(Point3f point)
          constructs a new DirectedPoint
DirectedPoint(SphericalPoint sphericalPoint)
          constructs a new DirectedPoint
DirectedPoint(Tuple3d tuple)
          constructs a new DirectedPoint
DirectedPoint(Tuple3f tuple)
          constructs a new DirectedPoint
 
Method Summary
 Object clone()
           
 boolean equals(Object arg0)
           
 boolean equals(Tuple3d arg0)
           
 double getRotX()
          returns the rotX value
 double getRotY()
          returns ther rotY-value
 double getRotZ()
          returns the rotZ value
 int hashCode()
           
 void setRotX(double rotX)
          sets the rotX
 void setRotY(double rotY)
          sets the rotY
 void setRotZ(double rotZ)
          sets the rotZ value
 String toString()
           
 
Methods inherited from class nl.tudelft.simulation.language.d3.CartesianPoint
to2D, toCartesianPoint, toSphericalPoint
 
Methods inherited from class javax.vecmath.Point3d
distance, distanceL1, distanceLinf, distanceSquared, project
 
Methods inherited from class javax.vecmath.Tuple3d
absolute, absolute, add, add, clamp, clamp, clamp, clamp, clampMax, clampMax, clampMax, clampMax, clampMin, clampMin, clampMin, clampMin, epsilonEquals, get, get, getX, getY, getZ, interpolate, interpolate, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, scaleAdd, set, set, set, set, setX, setY, setZ, sub, sub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectedPoint

public DirectedPoint()
constructs a new DirectedPoint


DirectedPoint

public DirectedPoint(double x,
                     double y,
                     double z)
constructs a new DirectedPoint

Parameters:
x - the x value
y - the y value
z - the z value

DirectedPoint

public DirectedPoint(double x,
                     double y,
                     double z,
                     double rotX,
                     double rotY,
                     double rotZ)
constructs a new DirectedPoint

Parameters:
x - the x value
y - the y value
z - the z value
rotX - rotX
rotY - rotY
rotZ - rotZ

DirectedPoint

public DirectedPoint(Point2D point2D,
                     double rotZ)
constructs a new DirectedPoint

Parameters:
point2D - the point
rotZ - rotZ

DirectedPoint

public DirectedPoint(double[] xyz)
constructs a new DirectedPoint

Parameters:
xyz - the xyx value

DirectedPoint

public DirectedPoint(Point3d cartesianPoint)
constructs a new DirectedPoint

Parameters:
cartesianPoint - the cartesianPoint

DirectedPoint

public DirectedPoint(SphericalPoint sphericalPoint)
constructs a new DirectedPoint

Parameters:
sphericalPoint - the sphericalPoint

DirectedPoint

public DirectedPoint(DirectedPoint location)
constructs a new DirectedPoint

Parameters:
location - the location

DirectedPoint

public DirectedPoint(Point2D point2D)
constructs a new DirectedPoint

Parameters:
point2D - the point

DirectedPoint

public DirectedPoint(Point3f point)
constructs a new DirectedPoint

Parameters:
point - the point

DirectedPoint

public DirectedPoint(Tuple3d tuple)
constructs a new DirectedPoint

Parameters:
tuple - the point

DirectedPoint

public DirectedPoint(Tuple3f tuple)
constructs a new DirectedPoint

Parameters:
tuple - the point
Method Detail

getRotY

public double getRotY()
returns ther rotY-value

Returns:
double

setRotY

public void setRotY(double rotY)
sets the rotY

Parameters:
rotY - the rotY-value

getRotZ

public double getRotZ()
returns the rotZ value

Returns:
double

setRotZ

public void setRotZ(double rotZ)
sets the rotZ value

Parameters:
rotZ - the rotZ-value

getRotX

public double getRotX()
returns the rotX value

Returns:
double

setRotX

public void setRotX(double rotX)
sets the rotX

Parameters:
rotX - rotX-value

toString

public String toString()
Overrides:
toString in class Tuple3d
See Also:
Object.toString()

clone

public Object clone()
Overrides:
clone in class Tuple3d
See Also:
Object.clone()

equals

public boolean equals(Object arg0)
Overrides:
equals in class Tuple3d
See Also:
Object.equals(java.lang.Object)

equals

public boolean equals(Tuple3d arg0)
Overrides:
equals in class Tuple3d
See Also:
Tuple3d.equals(javax.vecmath.Tuple3d)

hashCode

public int hashCode()
Overrides:
hashCode in class Tuple3d
See Also:
Object.hashCode()


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.