| java.lang.Object com.sun.j3d.utils.behaviors.picking.Intersect
Intersect | public class Intersect (Code) | | |
Method Summary | |
public static boolean | pointAndLine(PickPoint point, Point3d coordinates, int index) Determines if the PickPoint and Line
objects intersect.
The line is defined as coordinates[index] to
coordinates[index+1] .
Parameters: point - The point that is used in the intersection test. Parameters: coordinates - An array holding the line data. | public static boolean | pointAndLine(PickPoint point, Point3f coordinates, int index) Return true if line intersects with point. | public static boolean | pointAndPoint(PickPoint point, Point3d pnt) Determines if the PickPoint and Point3d
objects intersect. | public static boolean | pointAndPoint(PickPoint point, Point3f pnt) Return true if pnt intersects with point.
Parameters: point - The point that is used in intersection test. Parameters: pnt - The point that is used in intersection test. | public static boolean | rayAndLine(PickRay ray, Point3d coordinates, int index, double dist) Determines if the PickRay and Line
objects intersect. | public static boolean | rayAndLine(PickRay ray, Point3f coordinates, int index, double dist) 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. Parameters: coordinates - an array of vertices. Parameters: index - the vertex index Parameters: dist - On return dist[0] contains the distance between ray's origin and the point intersection, ifexist. | public static boolean | rayAndPoint(PickRay ray, Point3d pnt, double dist) Determines if the PickRay and Point3d
objects intersect.
Parameters: ray - The ray that is used in the intersection test. Parameters: pnt - The point that is used in intersection test. Parameters: dist - On return dist[0] will be set to the distance between ray's origin and the point of intersection, if it exists. | public static boolean | rayAndPoint(PickRay ray, Point3f pnt, double dist) 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. Parameters: pnt - The point that is used in intersection test. Parameters: dist - On return dist[0] contains the distance between ray's origin and the point intersection, if exist. | public static boolean | rayAndQuad(PickRay ray, Point3d coordinates, int index, double dist) Determines if the PickRay and quadrilateral
objects intersect.
The quadrilateral is defined as coordinates[index] to
coordinates[index+3] .
Parameters: ray - The ray to use in the intersection test. Parameters: coordinates - An array holding the quadrilateral data. Parameters: index - An array index that designates the starting positionin the array of the quadrilateral to test. Parameters: dist - On return dist[0] will be set to the distance between ray's origin and the point of intersection, if it exists. | public static boolean | rayAndTriangle(PickRay ray, Point3d coordinates, int index, double dist) 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. Parameters: coordinates - An array holding the triangle data. Parameters: index - An array index that designates the starting positionin the array of the triangle to test. Parameters: dist - On return dist[0] will be set to the distance between ray's origin and thepoint of intersection, if it exists. | public static boolean | rayAndTriangle(PickRay ray, Point3f coordinates, int index, double dist) 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. Parameters: coordinates - an array of vertices. Parameters: index - the vertex index Parameters: dist - On return dist[0] will be set to the distance between ray's origin and the point intersection, ifexist. | public static boolean | segmentAndLine(PickSegment segment, Point3d coordinates, int index, double dist) Determines if the PickSegment and Line
objects intersect.
The line is defined as coordinates[index] to
coordinates[index+1] .
Parameters: segment - The segment that is used in the intersection test. Parameters: coordinates - An array holding the line data. Parameters: dist - On return dist[0] contains the distance between segment's origin and the point ofintersection, if it exists. | public static boolean | segmentAndLine(PickSegment segment, Point3f coordinates, int index, double dist) 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. Parameters: coordinates - an array of vertices. Parameters: index - the vertex index Parameters: dist - On return dist[0] contains the distance between segment's start and the point intersection, if exist. | public static boolean | segmentAndPoint(PickSegment segment, Point3d pnt, double dist) Determines if the PickSegment and Point3d
objects intersect. | public static boolean | segmentAndPoint(PickSegment segment, Point3f pnt, double dist) 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. Parameters: pnt - The point that is used in intersection test. Parameters: dist - On return dist[0] contains the distance between segment's start and the point intersection, if exist. | public static boolean | segmentAndQuad(PickSegment segment, Point3d coordinates, int index, double dist) Caluates the intersection between a PickSegment
object and a quadrilateral.
The quad is defined as coordinates[index] to coordinates[index+3]
Parameters: segment - The segment to use in the intersection test. Parameters: coordinates - An array holding the quadrilateral data. Parameters: index - An array index that designates the starting positionin the array of the quadrilateral to test. Parameters: dist - On return dist[0] will be set to the distance between the start of the segmentand the point of intersection, if it exists. | public static boolean | segmentAndQuad(PickSegment segment, Point3f coordinates, int index, double dist) 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. Parameters: coordinates - an array of vertices. Parameters: index - the vertex index Parameters: dist - On return dist[0] will be set to the distance between segment's start and the point intersection, if exist. | public static boolean | segmentAndTriangle(PickSegment segment, Point3d coordinates, int index, double dist) Caluates the intersection between a PickSegment
object and a triangle.
The triangle is defined as coordinates[index] to coordinates[index+2]
Parameters: segment - The segment to use in the intersection test. Parameters: coordinates - An array holding the triangle data. Parameters: index - An array index that designates the starting positionin the array of the triangle to test. Parameters: dist - On return dist[0] contains the distance between the start of the segmentand the point of intersection, if it exists. | public static boolean | segmentAndTriangle(PickSegment segment, Point3f coordinates, int index, double dist) 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. Parameters: coordinates - an array of vertices. Parameters: index - the vertex index Parameters: dist - On return dist[0] will be set to the distance between segment's start and the point intersection, if exist. |
pointAndLine | public static boolean pointAndLine(PickPoint point, Point3d coordinates, int index)(Code) | | Determines if the PickPoint and Line
objects intersect.
The line is defined as coordinates[index] to
coordinates[index+1] .
Parameters: point - The point that is used in the intersection test. Parameters: 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. |
pointAndLine | public static boolean pointAndLine(PickPoint point, Point3f coordinates, int index)(Code) | | 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. Parameters: coordinates - an array of vertices. Parameters: index - the vertex index true if point intersects line, else return false. |
pointAndPoint | public static boolean pointAndPoint(PickPoint point, Point3d pnt)(Code) | | Determines if the PickPoint and Point3d
objects intersect.
Parameters: point - The PickPoint that is used in the intersection test. Parameters: pnt - The Point3d that is used in intersection test. true if the PickPoint and Point3d objectsintersect, false if the do not intersect. |
pointAndPoint | public static boolean pointAndPoint(PickPoint point, Point3f pnt)(Code) | | Return true if pnt intersects with point.
Parameters: point - The point that is used in intersection test. Parameters: pnt - The point that is used in intersection test. true if point intersects pnt, else return false. |
rayAndLine | public static boolean rayAndLine(PickRay ray, Point3d coordinates, int index, double dist)(Code) | | Determines if the PickRay and Line
objects intersect.
The line is defined as coordinates[index] to
coordinates[index+1] .
Parameters: ray - The ray that is used in the intersection test. Parameters: coordinates - An array holding the line data. Parameters: dist - On return dist[0] contains the distance between ray's origin and the point ofintersection, if it exists. The dist arrayshould be allocated by the user. true if the ray intersects the line,false if the ray does not intersect the object. |
rayAndLine | public static boolean rayAndLine(PickRay ray, Point3f coordinates, int index, double dist)(Code) | | 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. Parameters: coordinates - an array of vertices. Parameters: index - the vertex index Parameters: dist - On return dist[0] contains the distance between ray's origin and the point intersection, ifexist. true if ray intersects line, else return false. |
rayAndPoint | public static boolean rayAndPoint(PickRay ray, Point3d pnt, double dist)(Code) | | Determines if the PickRay and Point3d
objects intersect.
Parameters: ray - The ray that is used in the intersection test. Parameters: pnt - The point that is used in intersection test. Parameters: 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 arrayshould be allocated by the user. true if the ray intersects the point,false if the ray does not intersect the object. |
rayAndPoint | public static boolean rayAndPoint(PickRay ray, Point3f pnt, double dist)(Code) | | 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. Parameters: pnt - The point that is used in intersection test. Parameters: dist - On return dist[0] contains the distance between ray's origin and the point intersection, if exist. true if ray intersects point, else return false. |
rayAndQuad | public static boolean rayAndQuad(PickRay ray, Point3d coordinates, int index, double dist)(Code) | | Determines if the PickRay and quadrilateral
objects intersect.
The quadrilateral is defined as coordinates[index] to
coordinates[index+3] .
Parameters: ray - The ray to use in the intersection test. Parameters: coordinates - An array holding the quadrilateral data. Parameters: index - An array index that designates the starting positionin the array of the quadrilateral to test. Parameters: 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. true if the ray intersects the quad,false if the ray does not intersect the object. |
rayAndTriangle | public static boolean rayAndTriangle(PickRay ray, Point3d coordinates, int index, double dist)(Code) | | 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. Parameters: coordinates - An array holding the triangle data. Parameters: index - An array index that designates the starting positionin the array of the triangle to test. Parameters: dist - On return dist[0] will be set to the distance between ray's origin and thepoint of intersection, if it exists. The dist array should beallocated by the user. true if the ray intersects the triangle,false if the ray does not intersect the object. |
rayAndTriangle | public static boolean rayAndTriangle(PickRay ray, Point3f coordinates, int index, double dist)(Code) | | 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. Parameters: coordinates - an array of vertices. Parameters: index - the vertex index Parameters: dist - On return dist[0] will be set to the distance between ray's origin and the point intersection, ifexist. true if ray intersects triangle, else return false. |
segmentAndLine | public static boolean segmentAndLine(PickSegment segment, Point3d coordinates, int index, double dist)(Code) | | Determines if the PickSegment and Line
objects intersect.
The line is defined as coordinates[index] to
coordinates[index+1] .
Parameters: segment - The segment that is used in the intersection test. Parameters: coordinates - An array holding the line data. Parameters: dist - On return dist[0] contains the distance between segment's origin and the point ofintersection, if it exists. The dist arrayshould be allocated by the user. true if the segment intersects the line,false if the segment does not intersect the object. |
segmentAndLine | public static boolean segmentAndLine(PickSegment segment, Point3f coordinates, int index, double dist)(Code) | | 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. Parameters: coordinates - an array of vertices. Parameters: index - the vertex index Parameters: dist - On return dist[0] contains the distance between segment's start and the point intersection, if exist. true if segment intersects line, else return false. |
segmentAndPoint | public static boolean segmentAndPoint(PickSegment segment, Point3d pnt, double dist)(Code) | | Determines if the PickSegment and Point3d
objects intersect.
Parameters: segment - The segment that is used in the intersection test. Parameters: pnt - The point that is used in intersection test. Parameters: dist - On return dist[0] contains the distance between segment's origin and the pointof intersection, if it exists. The dist arrayshould be allocated by the user. true if the segment intersects the point,false if the segment does not intersect the object. |
segmentAndPoint | public static boolean segmentAndPoint(PickSegment segment, Point3f pnt, double dist)(Code) | | 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. Parameters: pnt - The point that is used in intersection test. Parameters: dist - On return dist[0] contains the distance between segment's start and the point intersection, if exist. true if segment intersects point, else return false. |
segmentAndQuad | public static boolean segmentAndQuad(PickSegment segment, Point3d coordinates, int index, double dist)(Code) | | Caluates the intersection between a PickSegment
object and a quadrilateral.
The quad is defined as coordinates[index] to coordinates[index+3]
Parameters: segment - The segment to use in the intersection test. Parameters: coordinates - An array holding the quadrilateral data. Parameters: index - An array index that designates the starting positionin the array of the quadrilateral to test. Parameters: dist - On return dist[0] will be set to the distance between the start of the segmentand the point of intersection, if it exists. The dist arrayshould be allocated by the user. true if the segment intersects the quad,false if the segment does not intersect the object. |
segmentAndQuad | public static boolean segmentAndQuad(PickSegment segment, Point3f coordinates, int index, double dist)(Code) | | 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. Parameters: coordinates - an array of vertices. Parameters: index - the vertex index Parameters: dist - On return dist[0] will be set to the distance between segment's start and the point intersection, if exist. true if segment intersects quad, else return false. |
segmentAndTriangle | public static boolean segmentAndTriangle(PickSegment segment, Point3d coordinates, int index, double dist)(Code) | | Caluates the intersection between a PickSegment
object and a triangle.
The triangle is defined as coordinates[index] to coordinates[index+2]
Parameters: segment - The segment to use in the intersection test. Parameters: coordinates - An array holding the triangle data. Parameters: index - An array index that designates the starting positionin the array of the triangle to test. Parameters: dist - On return dist[0] contains the distance between the start of the segmentand the point of intersection, if it exists. The dist arrayshould be allocated by the user. true if the segment intersects the triangle,false if the segment does not intersect the object. |
segmentAndTriangle | public static boolean segmentAndTriangle(PickSegment segment, Point3f coordinates, int index, double dist)(Code) | | 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. Parameters: coordinates - an array of vertices. Parameters: index - the vertex index Parameters: dist - On return dist[0] will be set to the distance between segment's start and the point intersection, if exist. true if segment intersects triangle, else return false. |
|
|