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

📄 intersect.html

📁 这是一个JAVA的代码
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/Intersect.html#segmentAndPoint(javax.media.j3d.PickSegment, javax.vecmath.Point3d, double[])">segmentAndPoint</A></B>(<A HREF="../../../../../../javax/media/j3d/PickSegment.html">PickSegment</A>&nbsp;segment,                <A HREF="../../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;pnt,                double[]&nbsp;dist)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Determines if the <code>PickSegment</code> and <code>Point3d</code> objects intersect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/Intersect.html#segmentAndPoint(javax.media.j3d.PickSegment, javax.vecmath.Point3f, double[])">segmentAndPoint</A></B>(<A HREF="../../../../../../javax/media/j3d/PickSegment.html">PickSegment</A>&nbsp;segment,                <A HREF="../../../../../../javax/vecmath/Point3f.html">Point3f</A>&nbsp;pnt,                double[]&nbsp;dist)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Return true if point intersects with segment and the distance, from the start of segment to the intersection point, is stored in dist[0].</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/Intersect.html#segmentAndQuad(javax.media.j3d.PickSegment, javax.vecmath.Point3d[], int, double[])">segmentAndQuad</A></B>(<A HREF="../../../../../../javax/media/j3d/PickSegment.html">PickSegment</A>&nbsp;segment,               <A HREF="../../../../../../javax/vecmath/Point3d.html">Point3d</A>[]&nbsp;coordinates,               int&nbsp;index,               double[]&nbsp;dist)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Caluates the intersection between a <code>PickSegment</code> object and a quadrilateral.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/Intersect.html#segmentAndQuad(javax.media.j3d.PickSegment, javax.vecmath.Point3f[], int, double[])">segmentAndQuad</A></B>(<A HREF="../../../../../../javax/media/j3d/PickSegment.html">PickSegment</A>&nbsp;segment,               <A HREF="../../../../../../javax/vecmath/Point3f.html">Point3f</A>[]&nbsp;coordinates,               int&nbsp;index,               double[]&nbsp;dist)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Return true if quad intersects with segment and the distance, from the start of segment to the intersection point, is stored in dist[0].</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/Intersect.html#segmentAndTriangle(javax.media.j3d.PickSegment, javax.vecmath.Point3d[], int, double[])">segmentAndTriangle</A></B>(<A HREF="../../../../../../javax/media/j3d/PickSegment.html">PickSegment</A>&nbsp;segment,                   <A HREF="../../../../../../javax/vecmath/Point3d.html">Point3d</A>[]&nbsp;coordinates,                   int&nbsp;index,                   double[]&nbsp;dist)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Caluates the intersection between a <code>PickSegment</code> object and a triangle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/Intersect.html#segmentAndTriangle(javax.media.j3d.PickSegment, javax.vecmath.Point3f[], int, double[])">segmentAndTriangle</A></B>(<A HREF="../../../../../../javax/media/j3d/PickSegment.html">PickSegment</A>&nbsp;segment,                   <A HREF="../../../../../../javax/vecmath/Point3f.html">Point3f</A>[]&nbsp;coordinates,                   int&nbsp;index,                   double[]&nbsp;dist)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Return true if triangle intersects with segment and the distance, from the start of segment to the intersection point, is stored in dist[0].</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Intersect()"><!-- --></A><H3>Intersect</H3><PRE>public <B>Intersect</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="rayAndQuad(javax.media.j3d.PickRay, javax.vecmath.Point3d[], int, double[])"><!-- --></A><H3>rayAndQuad</H3><PRE>public static boolean <B>rayAndQuad</B>(<A HREF="../../../../../../javax/media/j3d/PickRay.html">PickRay</A>&nbsp;ray,                                 <A HREF="../../../../../../javax/vecmath/Point3d.html">Point3d</A>[]&nbsp;coordinates,                                 int&nbsp;index,                                 double[]&nbsp;dist)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Determines if the <code>PickRay</code> and quadrilateral objects intersect. The quadrilateral is defined as <code>coordinates[index]</code> to <code>coordinates[index+3]</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 quadrilateral data.<DD><CODE>index</CODE> - An array index that designates the starting position  in the array of the quadrilateral to test.<DT><B>Returns:</B><DD><code>true</code> if the ray intersects the quad,  <code>false</code> if the ray does not intersect the object.</DL></DD></DL><HR><A NAME="rayAndTriangle(javax.media.j3d.PickRay, javax.vecmath.Point3d[], int, double[])"><!-- --></A><H3>rayAndTriangle</H3><PRE>public static boolean <B>rayAndTriangle</B>(<A HREF="../../../../../../javax/media/j3d/PickRay.html">PickRay</A>&nbsp;ray,                                     <A HREF="../../../../../../javax/vecmath/Point3d.html">Point3d</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] <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.<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">PickRay</A>&nbsp;ray,                                     <A HREF="../../../../../../javax/vecmath/Point3f.html">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<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">PickSegment</A>&nbsp;segment,                                     <A HREF="../../../../../../javax/vecmath/Point3d.html">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.<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">PickSegment</A>&nbsp;segment,                                     <A HREF="../../../../../../javax/vecmath/Point3f.html">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<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">PickSegment</A>&nbsp;segment,                                         <A HREF="../../../../../../javax/vecmath/Point3d.html">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.<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">PickSegment</A>&nbsp;segment,                                         <A HREF="../../../../../../javax/vecmath/Point3f.html">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<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">PickRay</A>&nbsp;ray,                                  <A HREF="../../../../../../javax/vecmath/Point3d.html">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>

⌨️ 快捷键说明

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