public class BoundingInformation
extends java.lang.Object
| Constructor and Description |
|---|
BoundingInformation()
Creates an "empty" bounding information.
|
BoundingInformation(ModelInformation model)
Creates a new bounding information and calculates the center position and extent based on the
provided model information object.
|
BoundingInformation(Vector3f center,
float xExtent,
float yExtent,
float zExtent)
Creates a new bounding information.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Vector3f |
getCenter()
Gets the center of this bounding information.
|
float |
getXExtent()
Gets the (half) extent along the x axis.
|
float |
getYExtent()
Gets the (half) extent along the y axis.
|
float |
getZExtent()
Gets the (half) extent along the z axis.
|
int |
hashCode() |
boolean |
isPointInVolume(Vector3f point)
Checks if the given point (represented as a
Vector3f) is inside
this bounding volume. |
java.lang.String |
toString()
Gets a String representation of this area.
|
public BoundingInformation()
public BoundingInformation(Vector3f center, float xExtent, float yExtent, float zExtent)
center - the center of the bounding information.xExtent - the half extent along the x axis.yExtent - the half extent along the y axis.zExtent - the half extent along the z axis.public BoundingInformation(ModelInformation model)
model - the ModelInformation to calculate the center/extent from.public float getXExtent()
public float getYExtent()
public float getZExtent()
public Vector3f getCenter()
public boolean isPointInVolume(Vector3f point)
Vector3f) is inside
this bounding volume.point - the point in 3d space (i.e. world position).public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object