📄 intersect.html
字号:
<DD><B>Deprecated.</B> <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> ray, <A HREF="../../../../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A>[] coordinates, int index, double[] dist)</PRE><DL><DD><B>Deprecated.</B> <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> segment, <A HREF="../../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>[] coordinates, int index, double[] dist)</PRE><DL><DD><B>Deprecated.</B> <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> segment, <A HREF="../../../../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A>[] coordinates, int index, double[] dist)</PRE><DL><DD><B>Deprecated.</B> <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> segment, <A HREF="../../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>[] coordinates, int index, double[] dist)</PRE><DL><DD><B>Deprecated.</B> <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> segment, <A HREF="../../../../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A>[] coordinates, int index, double[] dist)</PRE><DL><DD><B>Deprecated.</B> <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> ray, <A HREF="../../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> pnt, double[] dist)</PRE><DL><DD><B>Deprecated.</B> <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> ray, <A HREF="../../../../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A> pnt, double[] dist)</PRE><DL><DD><B>Deprecated.</B> <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> segment, <A HREF="../../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> pnt, double[] dist)</PRE><DL><DD><B>Deprecated.</B> <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> segment, <A HREF="../../../../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A> pnt, double[] dist)</PRE><DL><DD><B>Deprecated.</B> <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> point, <A HREF="../../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> pnt)</PRE><DL><DD><B>Deprecated.</B> <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 + -