|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Bounds
Interface base for Bounds.
| Method Summary | |
|---|---|
Bounds |
closestIntersection(Bounds[] boundsObjects)
Finds closest bounding object that intersects this bounding object. |
void |
combine(float x,
float y,
float z)
Combines this Body with a point. |
void |
combine(Point3f point)
Combines this Body with a point. |
void |
combine(Point3f[] points)
Combine this Body with an array of points. |
void |
compute(java.util.List<Tuple3f> coords)
|
void |
compute(Tuple3f[] coords)
|
void |
compute(VertexContainer source)
|
boolean |
contains(float px,
float py,
float pz)
Tests, if the given point is inside of these Bounds. |
boolean |
contains(Point3f point)
Tests, if the given point is inside of these Bounds. |
Point3f |
getCenter()
|
float |
getMaxDistance()
|
float |
getMaxSquaredDistance()
|
BoundsType |
getType()
|
boolean |
intersects(Bounds bounds)
Tests for intersection with another Bounds object. |
boolean |
intersects(Bounds[] bos)
Tests for intersection with an array of Bounds objects. |
boolean |
intersects(Point3f rayOrigin,
Vector3f rayDirection)
Tests for intersection with a ray. |
boolean |
intersects(Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
Tests for intersection with a ray. |
boolean |
intersects(Ray3f ray)
Tests for intersection with a ray. |
boolean |
intersects(Ray3f ray,
Tuple3f intersection)
Tests for intersection with a ray. |
void |
set(Bounds boundsObject)
Sets the the value of this Bounds object to enclode the specified bounding object |
void |
set(Bounds[] bounds)
Sets this bounds to the comnination of all the specified bounds. |
void |
transform(Bounds bounds,
Matrix4f trans)
Transforms a Bounds object so that it bounds a volume that is the result of transforming the given bounding object by the given transform. |
void |
transform(Matrix4f trans)
Transforms the Bounds object by the given transform. |
| Methods inherited from interface org.openmali.spatial.bodies.Body |
|---|
combine, combine |
| Method Detail |
|---|
BoundsType getType()
Point3f getCenter()
float getMaxSquaredDistance()
float getMaxDistance()
boolean intersects(Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
rayOrigin - rayDirection - intersection -
boolean intersects(Ray3f ray,
Tuple3f intersection)
ray - intersection -
boolean intersects(Point3f rayOrigin,
Vector3f rayDirection)
rayOrigin - rayDirection - boolean intersects(Ray3f ray)
ray - boolean intersects(Bounds bounds)
bounds - boolean intersects(Bounds[] bos)
bos - Bounds closestIntersection(Bounds[] boundsObjects)
boundsObjects - void transform(Matrix4f trans)
trans -
void transform(Bounds bounds,
Matrix4f trans)
bounds - trans -
boolean contains(float px,
float py,
float pz)
contains in interface Bodypx - py - pz -
boolean contains(Point3f point)
contains in interface Bodypoint -
void combine(float x,
float y,
float z)
combine in interface Bodyx - y - z - void combine(Point3f point)
combine in interface Bodypoint - void combine(Point3f[] points)
combine in interface Bodypoints - void set(Bounds boundsObject)
boundsObject - void set(Bounds[] bounds)
bounds - void compute(VertexContainer source)
source - void compute(java.util.List<Tuple3f> coords)
coords - void compute(Tuple3f[] coords)
coords -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||