nl.tudelft.simulation.language.d3
Class BoundsUtil

java.lang.Object
  extended bynl.tudelft.simulation.language.d3.BoundsUtil

public final class BoundsUtil
extends java.lang.Object

A BoundsUtil
(c) copyright 2003 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Version:
1.0 Mar 3, 2004
Author:
Peter Jacobs

Method Summary
static boolean contains(DirectedPoint center, javax.media.j3d.Bounds bounds, javax.vecmath.Point3d point)
           
static java.awt.geom.Rectangle2D getIntersect(DirectedPoint center, javax.media.j3d.Bounds bounds, double zValue)
          computes the intersect of bounds with the zValue
static javax.media.j3d.Bounds transform(javax.media.j3d.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 java.awt.geom.Rectangle2D getIntersect(DirectedPoint center,
                                                     javax.media.j3d.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 javax.media.j3d.Bounds transform(javax.media.j3d.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,
                               javax.media.j3d.Bounds bounds,
                               javax.vecmath.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-2004 Delft University of Technology, the Netherlands. All Rights Reserved.