⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intersect.html

📁 JAVA多媒体开发类库说明
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DD><B>Deprecated.</B>&nbsp;<DD>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] <code>coordinates[index+2]</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>ray</CODE> - The ray to use in the intersection test.<DD><CODE>coordinates</CODE> - An array holding the triangle data.<DD><CODE>index</CODE> - An array index that designates the starting position  in the array of the triangle to test.<DD><CODE>dist</CODE> - 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.<DT><B>Returns:</B><DD><code>true</code> if the ray intersects the triangle,  <code>false</code> if the ray does not intersect the object.</DL></DD></DL><HR><A NAME="rayAndTriangle(javax.media.j3d.PickRay, javax.vecmath.Point3f[], int, double[])"><!-- --></A><H3>rayAndTriangle</H3><PRE>public static boolean <B>rayAndTriangle</B>(<A HREF="../../../../../../javax/media/j3d/PickRay.html" title="class in javax.media.j3d">PickRay</A>&nbsp;ray,                                     <A HREF="../../../../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A>[]&nbsp;coordinates,                                     int&nbsp;index,                                     double[]&nbsp;dist)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>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]<P><DD><DL><DT><B>Parameters:</B><DD><CODE>ray</CODE> - The ray that is used in intersection test.<DD><CODE>coordinates</CODE> - an array of vertices.<DD><CODE>index</CODE> - the vertex index<DD><CODE>dist</CODE> - On return dist[0] will be set to the distance between ray's origin and the point intersection, if exist.<DT><B>Returns:</B><DD>true if ray intersects triangle, else return false.</DL></DD></DL><HR><A NAME="segmentAndQuad(javax.media.j3d.PickSegment, javax.vecmath.Point3d[], int, double[])"><!-- --></A><H3>segmentAndQuad</H3><PRE>public static boolean <B>segmentAndQuad</B>(<A HREF="../../../../../../javax/media/j3d/PickSegment.html" title="class in javax.media.j3d">PickSegment</A>&nbsp;segment,                                     <A HREF="../../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>[]&nbsp;coordinates,                                     int&nbsp;index,                                     double[]&nbsp;dist)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Caluates the intersection between a <code>PickSegment</code> object and a quadrilateral. The quad is defined as coordinates[index] to coordinates[index+3]<P><DD><DL><DT><B>Parameters:</B><DD><CODE>segment</CODE> - The segment to use in the intersection test.<DD><CODE>coordinates</CODE> - An array holding the quadrilateral data.<DD><CODE>index</CODE> - An array index that designates the starting position  in the array of the quadrilateral to test.<DD><CODE>dist</CODE> - 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.<DT><B>Returns:</B><DD><code>true</code> if the segment intersects the quad,  <code>false</code> if the segment does not intersect the object.</DL></DD></DL><HR><A NAME="segmentAndQuad(javax.media.j3d.PickSegment, javax.vecmath.Point3f[], int, double[])"><!-- --></A><H3>segmentAndQuad</H3><PRE>public static boolean <B>segmentAndQuad</B>(<A HREF="../../../../../../javax/media/j3d/PickSegment.html" title="class in javax.media.j3d">PickSegment</A>&nbsp;segment,                                     <A HREF="../../../../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A>[]&nbsp;coordinates,                                     int&nbsp;index,                                     double[]&nbsp;dist)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>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]<P><DD><DL><DT><B>Parameters:</B><DD><CODE>segment</CODE> - The segment that is used in intersection test.<DD><CODE>coordinates</CODE> - an array of vertices.<DD><CODE>index</CODE> - the vertex index<DD><CODE>dist</CODE> - On return dist[0] will be set to the distance between segment's start and the point  intersection, if exist.<DT><B>Returns:</B><DD>true if segment intersects quad, else return false.</DL></DD></DL><HR><A NAME="segmentAndTriangle(javax.media.j3d.PickSegment, javax.vecmath.Point3d[], int, double[])"><!-- --></A><H3>segmentAndTriangle</H3><PRE>public static boolean <B>segmentAndTriangle</B>(<A HREF="../../../../../../javax/media/j3d/PickSegment.html" title="class in javax.media.j3d">PickSegment</A>&nbsp;segment,                                         <A HREF="../../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>[]&nbsp;coordinates,                                         int&nbsp;index,                                         double[]&nbsp;dist)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Caluates the intersection between a <code>PickSegment</code> object and a triangle. The triangle is defined as coordinates[index] to coordinates[index+2]<P><DD><DL><DT><B>Parameters:</B><DD><CODE>segment</CODE> - The segment to use in the intersection test.<DD><CODE>coordinates</CODE> - An array holding the triangle data.<DD><CODE>index</CODE> - An array index that designates the starting position  in the array of the triangle to test.<DD><CODE>dist</CODE> - 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.<DT><B>Returns:</B><DD><code>true</code> if the segment intersects the triangle,  <code>false</code> if the segment does not intersect the object.</DL></DD></DL><HR><A NAME="segmentAndTriangle(javax.media.j3d.PickSegment, javax.vecmath.Point3f[], int, double[])"><!-- --></A><H3>segmentAndTriangle</H3><PRE>public static boolean <B>segmentAndTriangle</B>(<A HREF="../../../../../../javax/media/j3d/PickSegment.html" title="class in javax.media.j3d">PickSegment</A>&nbsp;segment,                                         <A HREF="../../../../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A>[]&nbsp;coordinates,                                         int&nbsp;index,                                         double[]&nbsp;dist)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>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]<P><DD><DL><DT><B>Parameters:</B><DD><CODE>segment</CODE> - The segment that is used in intersection test.<DD><CODE>coordinates</CODE> - an array of vertices.<DD><CODE>index</CODE> - the vertex index<DD><CODE>dist</CODE> - On return dist[0] will be set to the distance between segment's start and the point  intersection, if exist.<DT><B>Returns:</B><DD>true if segment intersects triangle, else return false.</DL></DD></DL><HR><A NAME="rayAndPoint(javax.media.j3d.PickRay, javax.vecmath.Point3d, double[])"><!-- --></A><H3>rayAndPoint</H3><PRE>public static boolean <B>rayAndPoint</B>(<A HREF="../../../../../../javax/media/j3d/PickRay.html" title="class in javax.media.j3d">PickRay</A>&nbsp;ray,                                  <A HREF="../../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>&nbsp;pnt,                                  double[]&nbsp;dist)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Determines if the <code>PickRay</code> and <code>Point3d</code> objects intersect.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>ray</CODE> - The ray that is used in the intersection test.<DD><CODE>pnt</CODE> - The point that is used in intersection test.<DD><CODE>dist</CODE> - 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.<DT><B>Returns:</B><DD><code>true</code> if the ray intersects the point,  <code>false</code> if the ray does not intersect the object.</DL></DD></DL><HR><A NAME="rayAndPoint(javax.media.j3d.PickRay, javax.vecmath.Point3f, double[])"><!-- --></A><H3>rayAndPoint</H3><PRE>public static boolean <B>rayAndPoint</B>(<A HREF="../../../../../../javax/media/j3d/PickRay.html" title="class in javax.media.j3d">PickRay</A>&nbsp;ray,                                  <A HREF="../../../../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A>&nbsp;pnt,                                  double[]&nbsp;dist)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Return true if point intersects with ray and the distance, from the origin of ray to the intersection point, is stored in dist[0].<P><DD><DL><DT><B>Parameters:</B><DD><CODE>ray</CODE> - The ray that is used in intersection test.<DD><CODE>pnt</CODE> - The point that is used in intersection test.<DD><CODE>dist</CODE> - On return dist[0] contains the distance between ray's origin and the point  intersection, if exist.<DT><B>Returns:</B><DD>true if ray intersects point, else return false.</DL></DD></DL><HR><A NAME="segmentAndPoint(javax.media.j3d.PickSegment, javax.vecmath.Point3d, double[])"><!-- --></A><H3>segmentAndPoint</H3><PRE>public static boolean <B>segmentAndPoint</B>(<A HREF="../../../../../../javax/media/j3d/PickSegment.html" title="class in javax.media.j3d">PickSegment</A>&nbsp;segment,                                      <A HREF="../../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>&nbsp;pnt,                                      double[]&nbsp;dist)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Determines if the <code>PickSegment</code> and <code>Point3d</code> objects intersect.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>segment</CODE> - The segment that is used in the intersection test.<DD><CODE>pnt</CODE> - The point that is used in intersection test.<DD><CODE>dist</CODE> - 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.<DT><B>Returns:</B><DD><code>true</code> if the segment intersects the point,  <code>false</code> if the segment does not intersect the object.</DL></DD></DL><HR><A NAME="segmentAndPoint(javax.media.j3d.PickSegment, javax.vecmath.Point3f, double[])"><!-- --></A><H3>segmentAndPoint</H3><PRE>public static boolean <B>segmentAndPoint</B>(<A HREF="../../../../../../javax/media/j3d/PickSegment.html" title="class in javax.media.j3d">PickSegment</A>&nbsp;segment,                                      <A HREF="../../../../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A>&nbsp;pnt,                                      double[]&nbsp;dist)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Return true if point intersects with segment and the distance, from the start of segment to the intersection point, is stored in dist[0].<P><DD><DL><DT><B>Parameters:</B><DD><CODE>segment</CODE> - The segment that is used in intersection test.<DD><CODE>pnt</CODE> - The point that is used in intersection test.<DD><CODE>dist</CODE> - On return dist[0] contains the distance between segment's start and the point  intersection, if exist.<DT><B>Returns:</B><DD>true if segment intersects point, else return false.</DL></DD></DL><HR><A NAME="pointAndPoint(javax.media.j3d.PickPoint, javax.vecmath.Point3d)"><!-- --></A><H3>pointAndPoint</H3><PRE>public static boolean <B>pointAndPoint</B>(<A HREF="../../../../../../javax/media/j3d/PickPoint.html" title="class in javax.media.j3d">PickPoint</A>&nbsp;point,                                    <A HREF="../../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>&nbsp;pnt)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Determines if the <code>PickPoint</code> and <code>Point3d</code> objects intersect.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>point</CODE> - The PickPoint that is used in the intersection test.<DD><CODE>pnt</CODE> - The Point3d that is used in intersection test.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -