Class Intersect
- java.lang.Object
-
- com.sun.j3d.utils.behaviors.picking.Intersect
-
public class Intersect extends java.lang.ObjectDeprecated.As of Java 3D version 1.2, this class is no longer needed
-
-
Constructor Summary
Constructors Constructor Description Intersect()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanpointAndLine(PickPoint point, javax.vecmath.Point3d[] coordinates, int index)Deprecated.Determines if thePickPointand Line objects intersect.static booleanpointAndLine(PickPoint point, javax.vecmath.Point3f[] coordinates, int index)Deprecated.Return true if line intersects with point.static booleanpointAndPoint(PickPoint point, javax.vecmath.Point3d pnt)Deprecated.Determines if thePickPointandPoint3dobjects intersect.static booleanpointAndPoint(PickPoint point, javax.vecmath.Point3f pnt)Deprecated.Return true if pnt intersects with point.static booleanrayAndLine(PickRay ray, javax.vecmath.Point3d[] coordinates, int index, double[] dist)Deprecated.Determines if thePickRayand Line objects intersect.static booleanrayAndLine(PickRay ray, javax.vecmath.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 booleanrayAndPoint(PickRay ray, javax.vecmath.Point3d pnt, double[] dist)Deprecated.Determines if thePickRayandPoint3dobjects intersect.static booleanrayAndPoint(PickRay ray, javax.vecmath.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 booleanrayAndQuad(PickRay ray, javax.vecmath.Point3d[] coordinates, int index, double[] dist)Deprecated.Determines if thePickRayand quadrilateral objects intersect.static booleanrayAndTriangle(PickRay ray, javax.vecmath.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 booleanrayAndTriangle(PickRay ray, javax.vecmath.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 booleansegmentAndLine(PickSegment segment, javax.vecmath.Point3d[] coordinates, int index, double[] dist)Deprecated.Determines if thePickSegmentand Line objects intersect.static booleansegmentAndLine(PickSegment segment, javax.vecmath.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 booleansegmentAndPoint(PickSegment segment, javax.vecmath.Point3d pnt, double[] dist)Deprecated.Determines if thePickSegmentandPoint3dobjects intersect.static booleansegmentAndPoint(PickSegment segment, javax.vecmath.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 booleansegmentAndQuad(PickSegment segment, javax.vecmath.Point3d[] coordinates, int index, double[] dist)Deprecated.Caluates the intersection between aPickSegmentobject and a quadrilateral.static booleansegmentAndQuad(PickSegment segment, javax.vecmath.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 booleansegmentAndTriangle(PickSegment segment, javax.vecmath.Point3d[] coordinates, int index, double[] dist)Deprecated.Caluates the intersection between aPickSegmentobject and a triangle.static booleansegmentAndTriangle(PickSegment segment, javax.vecmath.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].
-
-
-
Method Detail
-
rayAndQuad
public static boolean rayAndQuad(PickRay ray, javax.vecmath.Point3d[] coordinates, int index, double[] dist)
Deprecated.Determines if thePickRayand quadrilateral objects intersect. The quadrilateral is defined ascoordinates[index]tocoordinates[index+3].- Parameters:
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.dist- On return dist[0] will be set to the distance between ray's origin and the point of intersection, if it exists. The dist array should be allocated by the user.- Returns:
trueif the ray intersects the quad,falseif the ray does not intersect the object.
-
rayAndTriangle
public static boolean rayAndTriangle(PickRay ray, javax.vecmath.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]. The triangle is defined by coordinates[index] to coordinates[index+2]coordinates[index+2].- Parameters:
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.dist- On return dist[0] will be set to the distance between ray's origin and the point of intersection, if it exists. The dist array should be allocated by the user.- Returns:
trueif the ray intersects the triangle,falseif the ray does not intersect the object.
-
rayAndTriangle
public static boolean rayAndTriangle(PickRay ray, javax.vecmath.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]. The triangle is defined by coordinates[index] to coordinates[index+2]- Parameters:
ray- The ray that is used in intersection test.coordinates- an array of vertices.index- the vertex indexdist- On return dist[0] will be set to the distance between ray's origin and the point intersection, if exist.- Returns:
- true if ray intersects triangle, else return false.
-
segmentAndQuad
public static boolean segmentAndQuad(PickSegment segment, javax.vecmath.Point3d[] coordinates, int index, double[] dist)
Deprecated.Caluates the intersection between aPickSegmentobject and a quadrilateral. The quad is defined as coordinates[index] to coordinates[index+3]- Parameters:
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.dist- On return dist[0] will be set to the distance between the start of the segment and the point of intersection, if it exists. The dist array should be allocated by the user.- Returns:
trueif the segment intersects the quad,falseif the segment does not intersect the object.
-
segmentAndQuad
public static boolean segmentAndQuad(PickSegment segment, javax.vecmath.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]. The quad is defined by coordinates[index] to coordinates[index+3]- Parameters:
segment- The segment that is used in intersection test.coordinates- an array of vertices.index- the vertex indexdist- On return dist[0] will be set to the distance between segment's start and the point intersection, if exist.- Returns:
- true if segment intersects quad, else return false.
-
segmentAndTriangle
public static boolean segmentAndTriangle(PickSegment segment, javax.vecmath.Point3d[] coordinates, int index, double[] dist)
Deprecated.Caluates the intersection between aPickSegmentobject and a triangle. The triangle is defined as coordinates[index] to coordinates[index+2]- Parameters:
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.dist- On return dist[0] contains the distance between the start of the segment and the point of intersection, if it exists. The dist array should be allocated by the user.- Returns:
trueif the segment intersects the triangle,falseif the segment does not intersect the object.
-
segmentAndTriangle
public static boolean segmentAndTriangle(PickSegment segment, javax.vecmath.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]. The triangle is defined by coordinates[index] to coordinates[index+2]- Parameters:
segment- The segment that is used in intersection test.coordinates- an array of vertices.index- the vertex indexdist- On return dist[0] will be set to the distance between segment's start and the point intersection, if exist.- Returns:
- true if segment intersects triangle, else return false.
-
rayAndPoint
public static boolean rayAndPoint(PickRay ray, javax.vecmath.Point3d pnt, double[] dist)
Deprecated.Determines if thePickRayandPoint3dobjects intersect.- Parameters:
ray- The ray that is used in the intersection test.pnt- The point that is used in intersection test.dist- On return dist[0] will be set to the distance between ray's origin and the point of intersection, if it exists. The dist array should be allocated by the user.- Returns:
trueif the ray intersects the point,falseif the ray does not intersect the object.
-
rayAndPoint
public static boolean rayAndPoint(PickRay ray, javax.vecmath.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].- Parameters:
ray- The ray that is used in intersection test.pnt- The point that is used in intersection test.dist- On return dist[0] contains the distance between ray's origin and the point intersection, if exist.- Returns:
- true if ray intersects point, else return false.
-
segmentAndPoint
public static boolean segmentAndPoint(PickSegment segment, javax.vecmath.Point3d pnt, double[] dist)
Deprecated.Determines if thePickSegmentandPoint3dobjects intersect.- Parameters:
segment- The segment that is used in the intersection test.pnt- The point that is used in intersection test.dist- On return dist[0] contains the distance between segment's origin and the point of intersection, if it exists. The dist array should be allocated by the user.- Returns:
trueif the segment intersects the point,falseif the segment does not intersect the object.
-
segmentAndPoint
public static boolean segmentAndPoint(PickSegment segment, javax.vecmath.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].- Parameters:
segment- The segment that is used in intersection test.pnt- The point that is used in intersection test.dist- On return dist[0] contains the distance between segment's start and the point intersection, if exist.- Returns:
- true if segment intersects point, else return false.
-
pointAndPoint
public static boolean pointAndPoint(PickPoint point, javax.vecmath.Point3d pnt)
Deprecated.Determines if thePickPointandPoint3dobjects intersect.- Parameters:
point- The PickPoint that is used in the intersection test.pnt- The Point3d that is used in intersection test.- Returns:
trueif the PickPoint and Point3d objects intersect,falseif the do not intersect.
-
pointAndPoint
public static boolean pointAndPoint(PickPoint point, javax.vecmath.Point3f pnt)
Deprecated.Return true if pnt intersects with point.- Parameters:
point- The point that is used in intersection test.pnt- The point that is used in intersection test.- Returns:
- true if point intersects pnt, else return false.
-
rayAndLine
public static boolean rayAndLine(PickRay ray, javax.vecmath.Point3d[] coordinates, int index, double[] dist)
Deprecated.Determines if thePickRayand Line objects intersect. The line is defined ascoordinates[index]tocoordinates[index+1].- Parameters:
ray- The ray that is used in the intersection test.coordinates- An array holding the line data.dist- On return dist[0] contains the distance between ray's origin and the point of intersection, if it exists. The dist array should be allocated by the user.- Returns:
trueif the ray intersects the line,falseif the ray does not intersect the object.
-
rayAndLine
public static boolean rayAndLine(PickRay ray, javax.vecmath.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]. The line is defined by coordinates[index] to coordinates[index+1]- Parameters:
ray- The ray that is used in intersection test.coordinates- an array of vertices.index- the vertex indexdist- On return dist[0] contains the distance between ray's origin and the point intersection, if exist.- Returns:
- true if ray intersects line, else return false.
-
segmentAndLine
public static boolean segmentAndLine(PickSegment segment, javax.vecmath.Point3d[] coordinates, int index, double[] dist)
Deprecated.Determines if thePickSegmentand Line objects intersect. The line is defined ascoordinates[index]tocoordinates[index+1].- Parameters:
segment- The segment that is used in the intersection test.coordinates- An array holding the line data.dist- On return dist[0] contains the distance between segment's origin and the point of intersection, if it exists. The dist array should be allocated by the user.- Returns:
trueif the segment intersects the line,falseif the segment does not intersect the object.
-
segmentAndLine
public static boolean segmentAndLine(PickSegment segment, javax.vecmath.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]. The line is defined by coordinates[index] to coordinates[index+1]- Parameters:
segment- The segment that is used in intersection test.coordinates- an array of vertices.index- the vertex indexdist- On return dist[0] contains the distance between segment's start and the point intersection, if exist.- Returns:
- true if segment intersects line, else return false.
-
pointAndLine
public static boolean pointAndLine(PickPoint point, javax.vecmath.Point3d[] coordinates, int index)
Deprecated.Determines if thePickPointand Line objects intersect. The line is defined ascoordinates[index]tocoordinates[index+1].- Parameters:
point- The point that is used in the intersection test.coordinates- An array holding the line data.- Returns:
trueif the the point intersects the line,falseif the the point does not intersect the object.
-
pointAndLine
public static boolean pointAndLine(PickPoint point, javax.vecmath.Point3f[] coordinates, int index)
Deprecated.Return true if line intersects with point. The line is defined by coordinates[index] to coordinates[index+1]- Parameters:
point- The point that is used in intersection test.coordinates- an array of vertices.index- the vertex index- Returns:
- true if point intersects line, else return false.
-
-