|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.j3d.utils.behaviors.picking.Intersect
Constructor Summary | |
Intersect()
Deprecated. |
Method Summary | |
static boolean |
pointAndLine(PickPoint point,
Point3d[] coordinates,
int index)
Deprecated. Determines if the PickPoint and Line
objects intersect. |
static boolean |
pointAndLine(PickPoint point,
Point3f[] coordinates,
int index)
Deprecated. Return true if line intersects with point. |
static boolean |
pointAndPoint(PickPoint point,
Point3d pnt)
Deprecated. Determines if the PickPoint and Point3d
objects intersect. |
static boolean |
pointAndPoint(PickPoint point,
Point3f pnt)
Deprecated. Return true if pnt intersects with point. |
static boolean |
rayAndLine(PickRay ray,
Point3d[] coordinates,
int index,
double[] dist)
Deprecated. Determines if the PickRay and Line
objects intersect. |
static boolean |
rayAndLine(PickRay ray,
Point3f[] coordinates,
int index,
double[] dist)
Deprecated. Return true if line intersects with ray and the distance, from the origin of ray to the intersection point, is stored in dist[0]. |
static boolean |
rayAndPoint(PickRay ray,
Point3d pnt,
double[] dist)
Deprecated. Determines if the PickRay and Point3d
objects intersect. |
static boolean |
rayAndPoint(PickRay ray,
Point3f pnt,
double[] dist)
Deprecated. Return true if point intersects with ray and the distance, from the origin of ray to the intersection point, is stored in dist[0]. |
static boolean |
rayAndQuad(PickRay ray,
Point3d[] coordinates,
int index,
double[] dist)
Deprecated. Determines if the PickRay and quadrilateral
objects intersect. |
static boolean |
rayAndTriangle(PickRay ray,
Point3d[] coordinates,
int index,
double[] dist)
Deprecated. Return true if triangle intersects with ray and the distance, from the origin of ray to the intersection point, is stored in dist[0]. |
static boolean |
rayAndTriangle(PickRay ray,
Point3f[] coordinates,
int index,
double[] dist)
Deprecated. Return true if triangle intersects with ray and the distance, from the origin of ray to the intersection point, is stored in dist[0]. |
static boolean |
segmentAndLine(PickSegment segment,
Point3d[] coordinates,
int index,
double[] dist)
Deprecated. Determines if the PickSegment and Line
objects intersect. |
static boolean |
segmentAndLine(PickSegment segment,
Point3f[] coordinates,
int index,
double[] dist)
Deprecated. Return true if line intersects with segment and the distance, from the start of segment to the intersection point, is stored in dist[0]. |
static boolean |
segmentAndPoint(PickSegment segment,
Point3d pnt,
double[] dist)
Deprecated. Determines if the PickSegment and Point3d
objects intersect. |
static boolean |
segmentAndPoint(PickSegment segment,
Point3f pnt,
double[] dist)
Deprecated. Return true if point intersects with segment and the distance, from the start of segment to the intersection point, is stored in dist[0]. |
static boolean |
segmentAndQuad(PickSegment segment,
Point3d[] coordinates,
int index,
double[] dist)
Deprecated. Caluates the intersection between a PickSegment
object and a quadrilateral. |
static boolean |
segmentAndQuad(PickSegment segment,
Point3f[] coordinates,
int index,
double[] dist)
Deprecated. Return true if quad intersects with segment and the distance, from the start of segment to the intersection point, is stored in dist[0]. |
static boolean |
segmentAndTriangle(PickSegment segment,
Point3d[] coordinates,
int index,
double[] dist)
Deprecated. Caluates the intersection between a PickSegment
object and a triangle. |
static boolean |
segmentAndTriangle(PickSegment segment,
Point3f[] coordinates,
int index,
double[] dist)
Deprecated. Return true if triangle intersects with segment and the distance, from the start of segment to the intersection point, is stored in dist[0]. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Intersect()
Method Detail |
public static boolean rayAndQuad(PickRay ray, Point3d[] coordinates, int index, double[] dist)
PickRay
and quadrilateral
objects intersect.
The quadrilateral is defined as coordinates[index]
to
coordinates[index+3]
.
ray
- The ray to use in the intersection test.coordinates
- An array holding the quadrilateral data.index
- An array index that designates the starting position
in the array of the quadrilateral to test.
true
if the ray intersects the quad,
false
if the ray does not intersect the object.public static boolean rayAndTriangle(PickRay ray, Point3d[] coordinates, int index, double[] dist)
coordinates[index+2]
.
ray
- The ray to use in the intersection test.coordinates
- An array holding the triangle data.index
- An array index that designates the starting position
in the array of the triangle to test.
true
if the ray intersects the triangle,
false
if the ray does not intersect the object.public static boolean rayAndTriangle(PickRay ray, Point3f[] coordinates, int index, double[] dist)
ray
- The ray that is used in intersection test.coordinates
- an array of vertices.index
- the vertex index
public static boolean segmentAndQuad(PickSegment segment, Point3d[] coordinates, int index, double[] dist)
PickSegment
object and a quadrilateral.
The quad is defined as coordinates[index] to coordinates[index+3]
segment
- The segment to use in the intersection test.coordinates
- An array holding the quadrilateral data.index
- An array index that designates the starting position
in the array of the quadrilateral to test.
true
if the segment intersects the quad,
false
if the segment does not intersect the object.public static boolean segmentAndQuad(PickSegment segment, Point3f[] coordinates, int index, double[] dist)
segment
- The segment that is used in intersection test.coordinates
- an array of vertices.index
- the vertex index
public static boolean segmentAndTriangle(PickSegment segment, Point3d[] coordinates, int index, double[] dist)
PickSegment
object and a triangle.
The triangle is defined as coordinates[index] to coordinates[index+2]
segment
- The segment to use in the intersection test.coordinates
- An array holding the triangle data.index
- An array index that designates the starting position
in the array of the triangle to test.
true
if the segment intersects the triangle,
false
if the segment does not intersect the object.public static boolean segmentAndTriangle(PickSegment segment, Point3f[] coordinates, int index, double[] dist)
segment
- The segment that is used in intersection test.coordinates
- an array of vertices.index
- the vertex index
public static boolean rayAndPoint(PickRay ray, Point3d pnt, double[] dist)
PickRay
and Point3d
objects intersect.
ray
- The ray that is used in the intersection test.pnt
- The point that is used in intersection test.
true
if the ray intersects the point,
false
if the ray does not intersect the object.public static boolean rayAndPoint(PickRay ray, Point3f pnt, double[] dist)
ray
- The ray that is used in intersection test.pnt
- The point that is used in intersection test.
public static boolean segmentAndPoint(PickSegment segment, Point3d pnt, double[] dist)
PickSegment
and Point3d
objects intersect.
segment
- The segment that is used in the intersection test.pnt
- The point that is used in intersection test.
true
if the segment intersects the point,
false
if the segment does not intersect the object.public static boolean segmentAndPoint(PickSegment segment, Point3f pnt, double[] dist)
segment
- The segment that is used in intersection test.pnt
- The point that is used in intersection test.
public static boolean pointAndPoint(PickPoint point, Point3d pnt)
PickPoint
and Point3d
objects intersect.
point
- The PickPoint that is used in the intersection test.pnt
- The Point3d that is used in intersection test.
true
if the PickPoint and Point3d objects
intersect, false
if the do not intersect.public static boolean pointAndPoint(PickPoint point, Point3f pnt)
point
- The point that is used in intersection test.pnt
- The point that is used in intersection test.
public static boolean rayAndLine(PickRay ray, Point3d[] coordinates, int index, double[] dist)
PickRay
and Line
objects intersect.
The line is defined as coordinates[index]
to
coordinates[index+1]
.
ray
- The ray that is used in the intersection test.coordinates
- An array holding the line data.
true
if the ray intersects the line,
false
if the ray does not intersect the object.public static boolean rayAndLine(PickRay ray, Point3f[] coordinates, int index, double[] dist)
ray
- The ray that is used in intersection test.coordinates
- an array of vertices.index
- the vertex index
public static boolean segmentAndLine(PickSegment segment, Point3d[] coordinates, int index, double[] dist)
PickSegment
and Line
objects intersect.
The line is defined as coordinates[index]
to
coordinates[index+1]
.
segment
- The segment that is used in the intersection test.coordinates
- An array holding the line data.
true
if the segment intersects the line,
false
if the segment does not intersect the object.public static boolean segmentAndLine(PickSegment segment, Point3f[] coordinates, int index, double[] dist)
segment
- The segment that is used in intersection test.coordinates
- an array of vertices.index
- the vertex index
public static boolean pointAndLine(PickPoint point, Point3d[] coordinates, int index)
PickPoint
and Line
objects intersect.
The line is defined as coordinates[index]
to
coordinates[index+1]
.
point
- The point that is used in the intersection test.coordinates
- An array holding the line data.
true
if the the point intersects the line,
false
if the the point does not intersect the object.public static boolean pointAndLine(PickPoint point, Point3f[] coordinates, int index)
point
- The point that is used in intersection test.coordinates
- an array of vertices.index
- the vertex index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |