Package com.jme3.light
Class OrientedBoxProbeArea
java.lang.Object
com.jme3.light.OrientedBoxProbeArea
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected OrientedBoxProbeArea
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
void
setRadius
(float radius) void
setRotation
(Quaternion rotation) void
write
(JmeExporter e)
-
Constructor Details
-
OrientedBoxProbeArea
public OrientedBoxProbeArea() -
OrientedBoxProbeArea
-
-
Method Details
-
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:
-
getRadius
public float getRadius() -
setRadius
public void setRadius(float radius) -
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:
-
getUniformMatrix
- Specified by:
getUniformMatrix
in interfaceProbeArea
-
getExtent
-
setExtent
-
getCenter
-
setCenter
-
getRotation
-
setRotation
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-