|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.spatial.bodies.IntersectionFactory
public final class IntersectionFactory
This class provides static methods to test different bodies for intersection.
| Constructor Summary | |
|---|---|
IntersectionFactory()
|
|
| Method Summary | |
|---|---|
static boolean |
boxIntersectsBox(Box box1,
Box box2)
Tests two Boxes for intersection. |
static boolean |
boxIntersectsBox(float lowerX1,
float lowerY1,
float lowerZ1,
float upperX1,
float upperY1,
float upperZ1,
float lowerX2,
float lowerY2,
float lowerZ2,
float upperX2,
float upperY2,
float upperZ2)
Tests two Boxes for intersection. |
static boolean |
boxIntersectsBox(Tuple3f lower1,
Tuple3f upper1,
Tuple3f lower2,
Tuple3f upper2)
Tests two Boxes for intersection. |
static boolean |
boxIntersectsRay(float boxLowerX,
float boxLowerY,
float boxLowerZ,
float boxUpperX,
float boxUpperY,
float boxUpperZ,
Point3f origin,
Vector3f dir)
Tests a Box for intersection with a Ray. |
static boolean |
boxIntersectsRay(float boxLowerX,
float boxLowerY,
float boxLowerZ,
float boxUpperX,
float boxUpperY,
float boxUpperZ,
Point3f origin,
Vector3f dir,
Tuple3f intersection)
Tests a Box for intersection with a Ray. |
static boolean |
boxIntersectsRay(float boxLowerX,
float boxLowerY,
float boxLowerZ,
float boxUpperX,
float boxUpperY,
float boxUpperZ,
Ray3f ray)
Tests a Box for intersection with a Ray. |
static boolean |
boxIntersectsRay(float boxLowerX,
float boxLowerY,
float boxLowerZ,
float boxUpperX,
float boxUpperY,
float boxUpperZ,
Ray3f ray,
Tuple3f intersection)
Tests a Box for intersection with a Ray. |
static boolean |
boxIntersectsRay(Tuple3f boxLower,
Tuple3f boxUpper,
Point3f origin,
Vector3f dir)
Tests a Box for intersection with a Ray. |
static boolean |
boxIntersectsRay(Tuple3f boxLower,
Tuple3f boxUpper,
Point3f origin,
Vector3f dir,
Tuple3f intersection)
Tests a Box for intersection with a Ray. |
static boolean |
boxIntersectsRay(Tuple3f boxLower,
Tuple3f boxUpper,
Ray3f ray)
Tests a Box for intersection with a Ray. |
static boolean |
boxIntersectsRay(Tuple3f boxLower,
Tuple3f boxUpper,
Ray3f ray,
Tuple3f intersection)
Tests a Box for intersection with a Ray. |
static boolean |
convexHullIntersectsRay(ConvexHull hull,
Point3f origin,
Vector3f dir,
Tuple3f intersection)
|
static boolean |
convexHullIntersectsRay(ConvexHull hull,
Ray3f ray,
Tuple3f intersection)
|
static boolean |
intersectsRay(Sphere sphere,
Ray3f ray)
Does a ray intersection test with a Sphere. |
static boolean |
intersectsRay(Sphere sphere,
Ray3f ray,
Tuple3f intersect)
Does a ray intersection test with a Sphere. |
static boolean |
intersectsRay(Tuple3f sphereCenter,
float sphereRadius,
Ray3f ray,
Tuple3f intersect)
Does a ray intersection test with a Sphere. |
static boolean |
sphereIntersectsBox(float sphereX,
float sphereY,
float sphereZ,
float sphereR,
Box box)
Tests a Sphere and a Box for intersection. |
static boolean |
sphereIntersectsBox(float sphereX,
float sphereY,
float sphereZ,
float sphereR,
float boxLowerX,
float boxLowerY,
float boxLowerZ,
float boxUpperX,
float boxUpperY,
float boxUpperZ)
Tests a Sphere and a Box for intersection. |
static boolean |
sphereIntersectsBox(float sphereX,
float sphereY,
float sphereZ,
float sphereR,
Tuple3f boxLower,
Tuple3f boxUpper)
Tests a Sphere and a Box for intersection. |
static boolean |
sphereIntersectsBox(Sphere sphere,
Box box)
Tests a Sphere and a Box for intersection. |
static boolean |
sphereIntersectsBox(Sphere sphere,
Tuple3f boxLower,
Tuple3f boxUpper)
Tests a Sphere and a Box for intersection. |
static boolean |
sphereIntersectsRay(Sphere sphere,
Point3f rayOrigin,
Vector3f rayDirection)
Does a ray intersection test with a Sphere. |
static boolean |
sphereIntersectsRay(Sphere sphere,
Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
Does a ray intersection test with a Sphere. |
static boolean |
sphereIntersectsRay(Tuple3f sphereCenter,
float sphereRadius,
Point3f rayOrigin,
Vector3f rayDirection)
Does a ray intersection test with a Sphere. |
static boolean |
sphereIntersectsRay(Tuple3f sphereCenter,
float sphereRadius,
Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
Does a ray intersection test with a Sphere. |
static boolean |
sphereIntersectsRayInFront(Sphere sphere,
Point3f rayOrigin,
Vector3f rayDirection)
Does a ray intersection test with a Sphere and checks, if the intersection is in front. |
static boolean |
sphereIntersectsRayInFront(Sphere sphere,
Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
Does a ray intersection test with a Sphere and checks, if the intersection is in front. |
static boolean |
sphereIntersectsRayInFront(Sphere sphere,
Ray3f ray)
Does a ray intersection test with a Sphere and checks, if the intersection is in front. |
static boolean |
sphereIntersectsRayInFront(Sphere sphere,
Ray3f ray,
Tuple3f intersection)
Does a ray intersection test with a Sphere and checks, if the intersection is in front. |
static boolean |
sphereIntersectsRayInFront(Tuple3f sphereCenter,
float sphereRadius,
Point3f rayOrigin,
Vector3f rayDirection)
Does a ray intersection test with a Sphere and checks, if the intersection is in front. |
static boolean |
sphereIntersectsRayInFront(Tuple3f sphereCenter,
float sphereRadius,
Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
Does a ray intersection test with a Sphere and checks, if the intersection is in front. |
static boolean |
sphereIntersectsRayInFront(Tuple3f sphereCenter,
float sphereRadius,
Ray3f ray)
Does a ray intersection test with a Sphere and checks, if the intersection is in front. |
static boolean |
sphereIntersectsRayInFront(Tuple3f sphereCenter,
float sphereRadius,
Ray3f ray,
Tuple3f intersection)
Does a ray intersection test with a Sphere and checks, if the intersection is in front. |
static boolean |
sphereIntersectsSphere(float x1,
float y1,
float z1,
float r1,
float x2,
float y2,
float z2,
float r2)
Tests two Spheres for intersection. |
static boolean |
sphereIntersectsSphere(Sphere sphere1,
float x2,
float y2,
float z2,
float r2)
Tests two Spheres for intersection. |
static boolean |
sphereIntersectsSphere(Sphere sphere1,
Sphere sphere2)
Tests two Spheres for intersection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntersectionFactory()
| Method Detail |
|---|
public static boolean sphereIntersectsSphere(float x1,
float y1,
float z1,
float r1,
float x2,
float y2,
float z2,
float r2)
x1 - y1 - z1 - r1 - x2 - y2 - z2 - r2 -
public static boolean sphereIntersectsSphere(Sphere sphere1,
float x2,
float y2,
float z2,
float r2)
sphere1 - x2 - y2 - z2 - r2 -
public static boolean sphereIntersectsSphere(Sphere sphere1,
Sphere sphere2)
sphere1 - sphere2 -
public static final boolean sphereIntersectsBox(float sphereX,
float sphereY,
float sphereZ,
float sphereR,
float boxLowerX,
float boxLowerY,
float boxLowerZ,
float boxUpperX,
float boxUpperY,
float boxUpperZ)
sphereX - sphereY - sphereZ - sphereR - boxLowerX - boxLowerY - boxLowerZ - boxUpperX - boxUpperY - boxUpperZ -
public static final boolean sphereIntersectsBox(float sphereX,
float sphereY,
float sphereZ,
float sphereR,
Tuple3f boxLower,
Tuple3f boxUpper)
sphereX - sphereY - sphereZ - sphereR - boxLower - boxUpper -
public static final boolean sphereIntersectsBox(Sphere sphere,
Tuple3f boxLower,
Tuple3f boxUpper)
sphere - boxLower - boxUpper -
public static final boolean sphereIntersectsBox(float sphereX,
float sphereY,
float sphereZ,
float sphereR,
Box box)
sphereX - sphereY - sphereZ - sphereR - box -
public static final boolean sphereIntersectsBox(Sphere sphere,
Box box)
sphere - box -
public static boolean boxIntersectsBox(float lowerX1,
float lowerY1,
float lowerZ1,
float upperX1,
float upperY1,
float upperZ1,
float lowerX2,
float lowerY2,
float lowerZ2,
float upperX2,
float upperY2,
float upperZ2)
lowerX1 - lowerY1 - lowerZ1 - upperX1 - upperY1 - upperZ1 - lowerX2 - lowerY2 - lowerZ2 - upperX2 - upperY2 - upperZ2 -
public static boolean boxIntersectsBox(Tuple3f lower1,
Tuple3f upper1,
Tuple3f lower2,
Tuple3f upper2)
lower1 - upper1 - lower2 - upper2 -
public static boolean boxIntersectsBox(Box box1,
Box box2)
box1 - box2 -
public static boolean sphereIntersectsRay(Tuple3f sphereCenter,
float sphereRadius,
Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
rayOrigin - rayDirection - intersection -
public static boolean sphereIntersectsRay(Tuple3f sphereCenter,
float sphereRadius,
Point3f rayOrigin,
Vector3f rayDirection)
sphereCenter - sphereRadius - rayOrigin - rayDirection -
public static boolean intersectsRay(Tuple3f sphereCenter,
float sphereRadius,
Ray3f ray,
Tuple3f intersect)
sphereCenter - sphereRadius - ray - intersect -
public static boolean sphereIntersectsRay(Sphere sphere,
Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
sphere - rayOrigin - rayDirection - intersection -
public static boolean sphereIntersectsRay(Sphere sphere,
Point3f rayOrigin,
Vector3f rayDirection)
sphere - rayOrigin - rayDirection -
public static boolean intersectsRay(Sphere sphere,
Ray3f ray,
Tuple3f intersect)
sphere - ray - intersect -
public static boolean intersectsRay(Sphere sphere,
Ray3f ray)
sphere - ray -
public static boolean sphereIntersectsRayInFront(Tuple3f sphereCenter,
float sphereRadius,
Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
sphereCenter - sphereRadius - rayOrigin - rayDirection - intersection -
public static boolean sphereIntersectsRayInFront(Tuple3f sphereCenter,
float sphereRadius,
Ray3f ray,
Tuple3f intersection)
sphereCenter - sphereRadius - ray - intersection -
public static boolean sphereIntersectsRayInFront(Tuple3f sphereCenter,
float sphereRadius,
Point3f rayOrigin,
Vector3f rayDirection)
sphereCenter - sphereRadius - rayOrigin - rayDirection -
public static boolean sphereIntersectsRayInFront(Tuple3f sphereCenter,
float sphereRadius,
Ray3f ray)
sphereCenter - sphereRadius - ray -
public static boolean sphereIntersectsRayInFront(Sphere sphere,
Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
sphere - rayOrigin - rayDirection - intersection -
public static boolean sphereIntersectsRayInFront(Sphere sphere,
Ray3f ray,
Tuple3f intersection)
sphere - ray - intersection -
public static boolean sphereIntersectsRayInFront(Sphere sphere,
Point3f rayOrigin,
Vector3f rayDirection)
sphere - rayOrigin - rayDirection -
public static boolean sphereIntersectsRayInFront(Sphere sphere,
Ray3f ray)
sphere - ray -
public static boolean boxIntersectsRay(float boxLowerX,
float boxLowerY,
float boxLowerZ,
float boxUpperX,
float boxUpperY,
float boxUpperZ,
Point3f origin,
Vector3f dir,
Tuple3f intersection)
boxLowerX - boxLowerY - boxLowerZ - boxUpperX - boxUpperY - boxUpperZ - origin - dir - intersection -
public static boolean boxIntersectsRay(float boxLowerX,
float boxLowerY,
float boxLowerZ,
float boxUpperX,
float boxUpperY,
float boxUpperZ,
Ray3f ray,
Tuple3f intersection)
boxLowerX - boxLowerY - boxLowerZ - boxUpperX - boxUpperY - boxUpperZ - ray - intersection -
public static boolean boxIntersectsRay(Tuple3f boxLower,
Tuple3f boxUpper,
Point3f origin,
Vector3f dir,
Tuple3f intersection)
boxLower - boxUpper - origin - dir - intersection -
public static boolean boxIntersectsRay(Tuple3f boxLower,
Tuple3f boxUpper,
Ray3f ray,
Tuple3f intersection)
boxLower - boxUpper - ray - intersection -
public static boolean boxIntersectsRay(float boxLowerX,
float boxLowerY,
float boxLowerZ,
float boxUpperX,
float boxUpperY,
float boxUpperZ,
Point3f origin,
Vector3f dir)
boxLowerX - boxLowerY - boxLowerZ - boxUpperX - boxUpperY - boxUpperZ - origin - dir -
public static boolean boxIntersectsRay(float boxLowerX,
float boxLowerY,
float boxLowerZ,
float boxUpperX,
float boxUpperY,
float boxUpperZ,
Ray3f ray)
boxLowerX - boxLowerY - boxLowerZ - boxUpperX - boxUpperY - boxUpperZ - ray -
public static boolean boxIntersectsRay(Tuple3f boxLower,
Tuple3f boxUpper,
Point3f origin,
Vector3f dir)
boxLower - boxUpper - origin - dir -
public static boolean boxIntersectsRay(Tuple3f boxLower,
Tuple3f boxUpper,
Ray3f ray)
boxLower - boxUpper - ray -
public static boolean convexHullIntersectsRay(ConvexHull hull,
Point3f origin,
Vector3f dir,
Tuple3f intersection)
public static boolean convexHullIntersectsRay(ConvexHull hull,
Ray3f ray,
Tuple3f intersection)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||