Package com.jme3.scene.control
Class AreaUtils
java.lang.Object
com.jme3.scene.control.AreaUtils
Deprecated.
AreaUtils is used to calculate the area of various objects, such as bounding volumes. These
functions are very loose approximations.-
Method Summary
Modifier and TypeMethodDescriptionstatic floatcalcScreenArea(BoundingVolume bound, float distance, float screenWidth) Deprecated.Estimate the screen area of a bounding volume.
-
Method Details
-
calcScreenArea
Deprecated.Estimate the screen area of a bounding volume. If the volume isn't a BoundingSphere, BoundingBox, or OrientedBoundingBox, 0 is returned.- Parameters:
bound- The bounds to calculate the volume from.distance- The distance from camera to object.screenWidth- The width of the screen.- Returns:
- The area in pixels on the screen of the bounding volume.
-
AreaUtilsinstead, due to wrong package