|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.geometry.collision.BoundingCylinder
@Deprecated public class BoundingCylinder
This class represents a bounding cylinder that can be used for collision detection
Constructor Summary | |
---|---|
BoundingCylinder(AbstractMesh mesh)
Deprecated. Creates a new bounding cylinder comprising the specified mesh |
Method Summary | |
---|---|
void |
draw(javax.media.opengl.GL gl)
Deprecated. Draws the bounding volume |
float |
getBottomY()
Deprecated. Returns the bottom y-coordinate of the bounding cylinder. |
Point3D |
getCenter()
Deprecated. Returns the center point of the bounding volume |
float |
getMeshHeight()
Deprecated. Returns the height of the mesh that is bounded by the bounding volume. |
float |
getRadius()
Deprecated. Returns the radius of the boundng cylinder |
float |
getTopY()
Deprecated. Returns the top y value of the bounding cylinder. |
boolean |
isWithinFrustum(ViewingFrustum frustum)
Deprecated. Determines whether the bounding volume is inside the viewing frustum. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BoundingCylinder(AbstractMesh mesh)
mesh
- mesh to create the bounding cylinder forMethod Detail |
---|
public boolean isWithinFrustum(ViewingFrustum frustum)
BoundingVolumeIface
isWithinFrustum
in interface BoundingVolumeIface
frustum
- viewing frustum object which is coupled
to the camera objectpublic Point3D getCenter()
BoundingVolumeIface
getCenter
in interface BoundingVolumeIface
public float getMeshHeight()
BoundingVolumeIface
getMeshHeight
in interface BoundingVolumeIface
public float getRadius()
public float getBottomY()
public float getTopY()
public void draw(javax.media.opengl.GL gl)
BoundingVolumeIface
draw
in interface BoundingVolumeIface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |