de.rico.engine.geometry.collision
Interface BoundingVolumeIface

All Known Implementing Classes:
BoundingBox, BoundingCylinder, BoundingSphere

public interface BoundingVolumeIface

This interface specifies the basic methods for a bounding volume.

Author:
Frank Bruns

Method Summary
 void draw(javax.media.opengl.GL gl)
          Draws the bounding volume
 Point3D getCenter()
          Returns the center point of the bounding volume
 float getMeshHeight()
          Returns the height of the mesh that is bounded by the bounding volume.
 boolean isWithinFrustum(ViewingFrustum frustum)
          Determines whether the bounding volume is inside the viewing frustum.
 

Method Detail

getMeshHeight

float getMeshHeight()
Returns the height of the mesh that is bounded by the bounding volume.

Returns:
height of the mesh

getCenter

Point3D getCenter()
Returns the center point of the bounding volume

Returns:
center point of the bounding volume

isWithinFrustum

boolean isWithinFrustum(ViewingFrustum frustum)
Determines whether the bounding volume is inside the viewing frustum. If it's not inside the viewing frustum the mesh that is bounded by this bounding volume doesn't need to be drawn anymore.

Parameters:
frustum - viewing frustum object which is coupled to the camera object

draw

void draw(javax.media.opengl.GL gl)
Draws the bounding volume

Parameters:
gl -