Java Doc for Intersect.java in  » 6.0-JDK-Modules » java-3d » com » sun » j3d » utils » behaviors » picking » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » com.sun.j3d.utils.behaviors.picking 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j3d.utils.behaviors.picking.Intersect

Intersect
public class Intersect (Code)




Method Summary
public static  booleanpointAndLine(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  booleanpointAndLine(PickPoint point, Point3f coordinates, int index)
     Return true if line intersects with point.
public static  booleanpointAndPoint(PickPoint point, Point3d pnt)
     Determines if the PickPoint and Point3d objects intersect.
public static  booleanpointAndPoint(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  booleanrayAndLine(PickRay ray, Point3d coordinates, int index, double dist)
     Determines if the PickRay and Line objects intersect.
public static  booleanrayAndLine(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  booleanrayAndPoint(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  booleanrayAndPoint(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  booleanrayAndQuad(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  booleanrayAndTriangle(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  booleanrayAndTriangle(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  booleansegmentAndLine(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  booleansegmentAndLine(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  booleansegmentAndPoint(PickSegment segment, Point3d pnt, double dist)
     Determines if the PickSegment and Point3d objects intersect.
public static  booleansegmentAndPoint(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  booleansegmentAndQuad(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  booleansegmentAndQuad(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  booleansegmentAndTriangle(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  booleansegmentAndTriangle(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.



Method Detail
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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.