ProGAL.geom3d.volumes
Class RSS

java.lang.Object
  extended by ProGAL.geom3d.volumes.RSS
All Implemented Interfaces:
Shape, Volume

public class RSS
extends java.lang.Object
implements Volume

Implementation of a Rectangular Swept Sphere that supports overlap check and construction from a point-set and two RSS'.

Author:
P.Winter and R.Fonseca

Field Summary
 double radius
           
 Rectangle rectangle
           
 
Constructor Summary
RSS(Point center, Vector[] bases, double radius)
           
 
Method Summary
 RSS clone()
          Make a deep clone this volume.
static RSS createBoundingRSS_covariance(PointList points)
           
static RSS createBoundingRSS_covariance(RSS s1, RSS s2)
           
 Point getCenter()
          Get the geometric center of the shape.
 double getVolume()
          Get the volume.
 boolean overlaps(RSS rss)
          674HOps
 boolean overlaps(Volume vol)
          Determine if this volume overlaps vol.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rectangle

public Rectangle rectangle

radius

public double radius
Constructor Detail

RSS

public RSS(Point center,
           Vector[] bases,
           double radius)
Method Detail

overlaps

public boolean overlaps(Volume vol)
Description copied from interface: Volume
Determine if this volume overlaps vol. Two volumes overlap if their surfaces touch or if the union of interiors is non-empty.

Specified by:
overlaps in interface Volume

overlaps

public boolean overlaps(RSS rss)
674HOps


getVolume

public double getVolume()
Description copied from interface: Volume
Get the volume.

Specified by:
getVolume in interface Volume

getCenter

public Point getCenter()
Description copied from interface: Shape
Get the geometric center of the shape. The center of a shape can be interpreted in many ways (center of mass, circumcenter, inscribed center etc.). No strict requirement is given here, but typically the circumcenter should be supplied. This method is most prominently used to find the average center-position of a collection of shapes such that scene-viewers can be centered on the scene.

Specified by:
getCenter in interface Shape

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

createBoundingRSS_covariance

public static RSS createBoundingRSS_covariance(PointList points)

createBoundingRSS_covariance

public static RSS createBoundingRSS_covariance(RSS s1,
                                               RSS s2)

clone

public RSS clone()
Description copied from interface: Volume
Make a deep clone this volume.

Specified by:
clone in interface Volume
Overrides:
clone in class java.lang.Object