public class AreaUtils
extends java.lang.Object
AreaUtils
is used to calculate the area of various objects, such as bounding volumes. These
functions are very loose approximations.Modifier and Type | Method and Description |
---|---|
static float |
calcScreenArea(BoundingVolume bound,
float distance,
float screenWidth)
Estimate the screen area of a bounding volume.
|
public static float calcScreenArea(BoundingVolume bound, float distance, float screenWidth)
bound
- The bounds to calculate the volume from.distance
- The distance from camera to object.screenWidth
- The width of the screen.