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 IBoundingVolume
public void drawBoundingVolume(Camera camera, float[] projMatrix, float[] vMatrix, float[] mMatrix)
drawBoundingVolume
in interface IBoundingVolume
public void transform(float[] matrix)
transform
in interface IBoundingVolume
public void calculateBounds(Geometry3D geometry)
calculateBounds
in interface IBoundingVolume
public float getRadius()
public Number3D getPosition()
public float getScale()
public boolean intersectsWith(IBoundingVolume boundingVolume)
intersectsWith
in interface IBoundingVolume