nl.tudelft.simulation.language.d3
Class BoundsUtil

java.lang.Object
  extended by nl.tudelft.simulation.language.d3.BoundsUtil

public final class BoundsUtil
extends Object

A BoundsUtil.

(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

Method Summary
static boolean contains(DirectedPoint center, Bounds bounds, Point3d point)
           
static Rectangle2D getIntersect(DirectedPoint center, Bounds bounds, double zValue)
          computes the intersect of bounds with the zValue
static Bounds transform(Bounds bounds, DirectedPoint point)
          rotates and translates to a directed point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIntersect

public static Rectangle2D getIntersect(DirectedPoint center,
                                       Bounds bounds,
                                       double zValue)
computes the intersect of bounds with the zValue

Parameters:
bounds - the bounds
center - the
zValue - the zValue
Returns:
Rectangle2D the result

transform

public static Bounds transform(Bounds bounds,
                               DirectedPoint point)
rotates and translates to a directed point

Parameters:
point - the point
bounds - the bounds
Returns:
the bounds

contains

public static boolean contains(DirectedPoint center,
                               Bounds bounds,
                               Point3d point)
Parameters:
center - the center of the bounds
bounds - the bounds
point - the point
Returns:
whether or not the point is in the bounds


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