nl.tudelft.simulation.dsol.animation
Class StaticLocation

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
                  extended by nl.tudelft.simulation.dsol.animation.StaticLocation
All Implemented Interfaces:
Serializable, Cloneable, LocatableInterface

public class StaticLocation
extends DirectedPoint
implements LocatableInterface

A StaticLocation
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

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

Field Summary
protected  Bounds bounds
          the bounds
 
Fields inherited from class javax.vecmath.Tuple3d
x, y, z
 
Constructor Summary
StaticLocation(DirectedPoint location, Bounds bounds)
          constructs a new StaticLocation
StaticLocation(double x, double y, double z, double theta, double phi, double rho, Bounds bounds)
          constructs a new StaticLocation
StaticLocation(Point2D point2D, double rotZ, Bounds bounds)
          constructs a new StaticLocation
 
Method Summary
 Bounds getBounds()
          returns the bounds of the locatable object.
 DirectedPoint getLocation()
          returns the location of an object
 
Methods inherited from class nl.tudelft.simulation.language.d3.DirectedPoint
clone, equals, equals, getRotX, getRotY, getRotZ, hashCode, setRotX, setRotY, setRotZ, 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
 

Field Detail

bounds

protected Bounds bounds
the bounds

Constructor Detail

StaticLocation

public StaticLocation(double x,
                      double y,
                      double z,
                      double theta,
                      double phi,
                      double rho,
                      Bounds bounds)
constructs a new StaticLocation

Parameters:
x - the x location
y - the y location
z - the z location
theta - theta
phi - phi
rho - rho
bounds - the bounds

StaticLocation

public StaticLocation(Point2D point2D,
                      double rotZ,
                      Bounds bounds)
constructs a new StaticLocation

Parameters:
point2D - the point2d
rotZ - the rotation in the xy plane
bounds - the bounds

StaticLocation

public StaticLocation(DirectedPoint location,
                      Bounds bounds)
constructs a new StaticLocation

Parameters:
location - the location
bounds - the bounds
Method Detail

getLocation

public DirectedPoint getLocation()
Description copied from interface: LocatableInterface
returns the location of an object

Specified by:
getLocation in interface LocatableInterface
Returns:
DirectedPoint the location
See Also:
#getLocation()

getBounds

public Bounds getBounds()
Description copied from interface: LocatableInterface
returns the bounds of the locatable object. The bounds is the not rotated bounds around [0;0;0]

Specified by:
getBounds in interface LocatableInterface
Returns:
BoundingBox include this.getLocation() as center of the box..
See Also:
#getBounds()


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