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:
java.io.Serializable, java.lang.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.8 $ $Date: 2005/08/04 12:08:56 $
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(java.awt.geom.Point2D point2D)
          constructs a new DirectedPoint.
DirectedPoint(java.awt.geom.Point2D point2D, double rotZ)
          constructs a new DirectedPoint.
DirectedPoint(javax.vecmath.Point3d cartesianPoint)
          constructs a new DirectedPoint.
DirectedPoint(javax.vecmath.Point3f point)
          constructs a new DirectedPoint.
DirectedPoint(SphericalPoint sphericalPoint)
          constructs a new DirectedPoint.
DirectedPoint(javax.vecmath.Tuple3d tuple)
          constructs a new DirectedPoint.
DirectedPoint(javax.vecmath.Tuple3f tuple)
          constructs a new DirectedPoint.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object arg0)
           
 boolean equals(javax.vecmath.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.
 java.lang.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, interpolate, interpolate, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, scaleAdd, set, set, set, set, 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(java.awt.geom.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(javax.vecmath.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(java.awt.geom.Point2D point2D)
constructs a new DirectedPoint.

Parameters:
point2D - the point

DirectedPoint

public DirectedPoint(javax.vecmath.Point3f point)
constructs a new DirectedPoint.

Parameters:
point - the point

DirectedPoint

public DirectedPoint(javax.vecmath.Tuple3d tuple)
constructs a new DirectedPoint.

Parameters:
tuple - the point

DirectedPoint

public DirectedPoint(javax.vecmath.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 final java.lang.String toString()
Overrides:
toString in class javax.vecmath.Tuple3d
See Also:
Object.toString()

clone

public java.lang.Object clone()
Overrides:
clone in class javax.vecmath.Tuple3d
See Also:
Object.clone()

equals

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

equals

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

hashCode

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


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