|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Bounds
Defines an interface for the bounds of a 3-dimensional object.
Method Summary | ||
---|---|---|
boolean |
equals(Object obj)
Returns true if the specified object is equal to this bounding object. |
|
int |
hashCode()
Returns a hash code based on the elements of this bounding object. |
|
boolean |
intersects(Bounds bounds)
Tests whether this bounding object intersects the specified bounding object. |
|
boolean |
intersects(Frustum frustum)
Tests whether this bounding object intersects the specified frustum. |
|
float |
intersects(Plane plane)
Tests whether this bounding object intersects the specified plane. |
|
float |
intersects(Ray ray)
Tests whether this bounding object intersects the specified ray. |
|
boolean |
isEmpty()
Determines if this bounding object is empty. |
|
void |
merge(Bounds bounds)
Sets this bounding object to the smallest bounding object that contains both this bounding object and the specified bounds. |
|
void |
set(Bounds bounds)
Sets this bounding object to the specified bounding object. |
|
String |
toString()
Returns a String representation of this bounding object. |
|
void |
transform(Matrix4f matrix)
Transforms the bounding object by the given transformation matrix. |
Method Detail |
---|
boolean intersects(Bounds bounds)
bounds
- The bounding object to test intersection with.
true
if the specified bounding object intersects this bounding object;
false
otherwise.
NullPointerException
- If bounds
is null
.boolean intersects(Frustum frustum)
frustum
- The frustum to test intersection with.
true
if this bounding object intersects the specified frustum;
false
otherwise.
NullPointerException
- If frustum
is null
.float intersects(Plane plane)
plane
- The plane to test intersection with.
INTERSECTS_BACK
if this bounding object is in the negative half-space of
the plane, INTERSECTS_FRONT
if it is in the positive half-space of the plane;
and INTERSECTS_INTERSECTING
if it intersects the plane.
NullPointerException
- If plane
is null
.float intersects(Ray ray)
ray
- The ray to test intersection with.
INTERSECTS_NONE
if the ray does not intersect this bounding object.
NullPointerException
- If ray
is null
.boolean isEmpty()
true
if this bounding object is empty;false
otherwise.void merge(Bounds bounds)
bounds
- The bounding object to merge with.
NullPointerException
- If bounds
is null
.void set(Bounds bounds)
bounds
- The bounding object to set to.
IllegalArgumentException
- If this bounding object's type does
not match the type of bounds
.
NullPointerException
- If bounds
is null
.void transform(Matrix4f matrix)
matrix
- The transformation matrix to transform by.
NullPointerException
- If matrix
is null
.boolean equals(Object obj)
equals
in class Object
obj
- The object to compare.
true
if this bounding object is equal to obj
; false
otherwise.
NullPointerException
- If obj
is null
.Boolean.hashCode()
,
Hashtable
int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
Hashtable
String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal