Package com.jme3.light
Class SphereProbeArea
java.lang.Object
com.jme3.light.SphereProbeArea
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SphereProbeArea
clone()
float
boolean
intersectsBox
(BoundingBox box, TempVars vars) boolean
intersectsFrustum
(Camera camera, TempVars vars) boolean
intersectsSphere
(BoundingSphere sphere, TempVars vars) void
read
(JmeImporter i) void
void
setRadius
(float radius) toString()
void
write
(JmeExporter e)
-
Constructor Details
-
SphereProbeArea
public SphereProbeArea() -
SphereProbeArea
-
-
Method Details
-
getCenter
-
setCenter
-
getRadius
public float getRadius() -
setRadius
public void setRadius(float radius) -
getUniformMatrix
- Specified by:
getUniformMatrix
in interfaceProbeArea
-
intersectsBox
- Specified by:
intersectsBox
in interfaceProbeArea
- Parameters:
box
- the BoundingBox to test for intersectionvars
- storage for temporary data- Returns:
- true if the area and the box intersect, otherwise false
- See Also:
-
intersectsSphere
- Specified by:
intersectsSphere
in interfaceProbeArea
- Parameters:
sphere
- the BoundingSphere to test for intersectionvars
- storage for temporary data- Returns:
- true if the area and the sphere intersect, otherwise false
- See Also:
-
intersectsFrustum
- Specified by:
intersectsFrustum
in interfaceProbeArea
- Parameters:
camera
- the Camera whose frustum will be tested for intersectionvars
- storage for temporary data- Returns:
- true if the area and the frustum intersect, otherwise false
- See Also:
-
toString
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-