public class BoundingSphere extends java.lang.Object implements IBoundingVolume
| Constructor and Description |
|---|
BoundingSphere() |
BoundingSphere(Geometry3D geometry) |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateBounds(Geometry3D geometry) |
void |
drawBoundingVolume(Camera camera,
float[] projMatrix,
float[] vMatrix,
float[] mMatrix) |
Number3D |
getPosition() |
float |
getRadius() |
float |
getScale() |
BaseObject3D |
getVisual() |
boolean |
intersectsWith(IBoundingVolume boundingVolume) |
void |
transform(float[] matrix) |
public BoundingSphere()
public BoundingSphere(Geometry3D geometry)
public BaseObject3D getVisual()
getVisual in interface IBoundingVolumepublic void drawBoundingVolume(Camera camera, float[] projMatrix, float[] vMatrix, float[] mMatrix)
drawBoundingVolume in interface IBoundingVolumepublic void transform(float[] matrix)
transform in interface IBoundingVolumepublic void calculateBounds(Geometry3D geometry)
calculateBounds in interface IBoundingVolumepublic float getRadius()
public Number3D getPosition()
public float getScale()
public boolean intersectsWith(IBoundingVolume boundingVolume)
intersectsWith in interface IBoundingVolume