org.openmali.spatial.bodies
Interface Body

All Known Subinterfaces:
Bounds
All Known Implementing Classes:
BoundingBox, BoundingPolytope, BoundingSphere, Box, ConvexHull, OcNode, Sphere

public interface Body

Base class for all geometric Bodies.

Author:
Marvin Froehlich (aka Qudus)

Method Summary
 void combine(Body body)
          Combines this Body with a bounding object.
 void combine(Body[] 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(Body body)
Combines this Body with a bounding object.

Parameters:
body -

combine

void combine(Body[] 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 -