Class AreaUtils

java.lang.Object
com.jme3.scene.control.AreaUtils

@Deprecated public class AreaUtils extends Object
Deprecated.
use AreaUtils instead, due to wrong package
AreaUtils is used to calculate the area of various objects, such as bounding volumes. These functions are very loose approximations.
  • Method Details

    • calcScreenArea

      public static float calcScreenArea(BoundingVolume bound, float distance, float screenWidth)
      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.