org.openmali.spatial.bodies
Interface BodyInterface

All Known Subinterfaces:
Bounds
All Known Implementing Classes:
Body, BoundingBox, BoundingPolytope, BoundingSphere, Box, ConvexHull, OcCell, QuadCell, Sphere

public interface BodyInterface

Simple interface for the Body class.


Method Summary
 void combine(BodyInterface body)
          Combines this Body with a bounding object.
 void combine(BodyInterface[] bodies)
          Combines this Body with an array of bounding objects.
 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.
 boolean contains(float px, float py, float pz)
          Tests, if the given point is inside of this Body.
 boolean contains(Point3f point)
          Tests, if the given point is inside of this Body.
 

Method Detail

contains

boolean contains(float px,
                 float py,
                 float pz)
Tests, if the given point is inside of this Body.

Parameters:
px -
py -
pz -
Returns:
true, if it is inside

contains

boolean contains(Point3f point)
Tests, if the given point is inside of this Body.

Parameters:
point -
Returns:
true, if it is inside

combine

void combine(BodyInterface body)
Combines this Body with a bounding object.

Parameters:
body -

combine

void combine(BodyInterface[] bodies)
Combines this Body with an array of bounding objects.

Parameters:
bodies -

combine

void combine(float x,
             float y,
             float z)
Combines this Body with a point.

Parameters:
x -
y -
z -

combine

void combine(Point3f point)
Combines this Body with a point.

Parameters:
point -

combine

void combine(Point3f[] points)
Combine this Body with an array of points.

Parameters:
points -