com.jme3.scene.control
クラス AreaUtils

java.lang.Object
  上位を拡張 com.jme3.scene.control.AreaUtils

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.


コンストラクタの概要
AreaUtils()
           
 
メソッドの概要
static float calcScreenArea(BoundingVolume bound, float distance, float screenWidth)
          calcScreenArea -- in Pixels Aproximates the screen area of a bounding volume.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AreaUtils

public AreaUtils()
メソッドの詳細

calcScreenArea

public static float calcScreenArea(BoundingVolume bound,
                                   float distance,
                                   float screenWidth)
calcScreenArea -- in Pixels Aproximates the screen area of a bounding volume. If the volume isn't a BoundingSphere, BoundingBox, or OrientedBoundingBox 0 is returned.

パラメータ:
bound - The bounds to calculate the volume from.
distance - The distance from camera to object.
screenWidth - The width of the screen.
戻り値:
The area in pixels on the screen of the bounding volume.