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

📄 boundingsphere.html

📁 java 3d帮助文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests whether the bounding sphere is empty.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/BoundingSphere.html#set(javax.media.j3d.Bounds)">set</A></B>(<A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>&nbsp;boundsObject)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value of this BoundingSphere.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/BoundingSphere.html#setCenter(javax.vecmath.Point3d)">setCenter</A></B>(<A HREF="../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;center)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the position of this bounding sphere from a point.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/BoundingSphere.html#setRadius(double)">setRadius</A></B>(double&nbsp;r)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the radius of this bounding sphere from a double.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/BoundingSphere.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of this class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/BoundingSphere.html#transform(javax.media.j3d.Bounds, javax.media.j3d.Transform3D)">transform</A></B>(<A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>&nbsp;boundsObject,          <A HREF="../../../javax/media/j3d/Transform3D.html">Transform3D</A>&nbsp;matrix)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Modifies the bounding sphere so that it bounds the volume generated by transforming the given bounding object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/BoundingSphere.html#transform(javax.media.j3d.Transform3D)">transform</A></B>(<A HREF="../../../javax/media/j3d/Transform3D.html">Transform3D</A>&nbsp;trans)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Transforms this bounding sphere by the given matrix.</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>finalize, getClass, notify, notifyAll, 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="BoundingSphere(javax.vecmath.Point3d, double)"><!-- --></A><H3>BoundingSphere</H3><PRE>public <B>BoundingSphere</B>(<A HREF="../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;center,                      double&nbsp;radius)</PRE><DL><DD>Constructs and initializes a BoundingSphere from a center and radius.<P><DT><B>Parameters:</B><DD><CODE>center</CODE> - the center of the bounding sphere<DD><CODE>radius</CODE> - the radius of the bounding sphere</DL><HR><A NAME="BoundingSphere()"><!-- --></A><H3>BoundingSphere</H3><PRE>public <B>BoundingSphere</B>()</PRE><DL><DD>Constructs and initializes a BoundingSphere with radius = 1 at 0 0 0.<P></DL><HR><A NAME="BoundingSphere(javax.media.j3d.Bounds)"><!-- --></A><H3>BoundingSphere</H3><PRE>public <B>BoundingSphere</B>(<A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>&nbsp;boundsObject)</PRE><DL><DD>Constructs and initializes a BoundingSphere from a bounding object.<P><DT><B>Parameters:</B><DD><CODE>boundsObject</CODE> - a bounds object</DL><HR><A NAME="BoundingSphere(javax.media.j3d.Bounds[])"><!-- --></A><H3>BoundingSphere</H3><PRE>public <B>BoundingSphere</B>(<A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>[]&nbsp;boundsObjects)</PRE><DL><DD>Constructs and initializes a BoundingSphere from an array of bounding objects.<P></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="getRadius()"><!-- --></A><H3>getRadius</H3><PRE>public double <B>getRadius</B>()</PRE><DL><DD>Returns the radius of this bounding sphere as a double.<P><DD><DL><DT><B>Returns:</B><DD>the radius of the bounding sphere</DL></DD></DL><HR><A NAME="setRadius(double)"><!-- --></A><H3>setRadius</H3><PRE>public void <B>setRadius</B>(double&nbsp;r)</PRE><DL><DD>Sets the radius of this bounding sphere from a double.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - the new radius for the bounding sphere</DL></DD></DL><HR><A NAME="getCenter(javax.vecmath.Point3d)"><!-- --></A><H3>getCenter</H3><PRE>public void <B>getCenter</B>(<A HREF="../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;center)</PRE><DL><DD>Returns the position of this bounding sphere as a point.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>center</CODE> - a Point to receive the center of the bounding sphere</DL></DD></DL><HR><A NAME="setCenter(javax.vecmath.Point3d)"><!-- --></A><H3>setCenter</H3><PRE>public void <B>setCenter</B>(<A HREF="../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;center)</PRE><DL><DD>Sets the position of this bounding sphere from a point.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>center</CODE> - a Point defining the new center of the bounding sphere</DL></DD></DL><HR><A NAME="set(javax.media.j3d.Bounds)"><!-- --></A><H3>set</H3><PRE>public void <B>set</B>(<A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>&nbsp;boundsObject)</PRE><DL><DD>Sets the value of this BoundingSphere.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/media/j3d/Bounds.html#set(javax.media.j3d.Bounds)">set</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>boundsObject</CODE> - another bounds object</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Creates a copy of the bounding sphere.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/media/j3d/Bounds.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a BoundingSphere</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object&nbsp;bounds)</PRE><DL><DD>Indicates whether the specified <code>bounds</code> object is equal to this BoundingSphere object.  They are equal if the specified <code>bounds</code> object is an instance of BoundingSphere and all of the data members of <code>bounds</code> are equal to the corresponding data members in this BoundingSphere.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/media/j3d/Bounds.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bounds</CODE> - the object with which the comparison is made.<DT><B>Returns:</B><DD>true if this BoundingSphere is equal to <code>bounds</code>; otherwise false<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hash code value for this BoundingSphere object based on the data values in this object.  Two different BoundingSphere objects with identical data values (i.e., BoundingSphere.equals returns true) will return the same hash code value.  Two BoundingSphere objects with different data members may return the same hash code value, although this is not likely.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/media/j3d/Bounds.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a hash code value for this BoundingSphere object.<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL></DD></DL><HR><A NAME="combine(javax.media.j3d.Bounds)"><!-- --></A><H3>combine</H3><PRE>public void <B>combine</B>(<A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>&nbsp;boundsObject)</PRE><DL><DD>Combines this bounding sphere with a bounding object so that the resulting bounding sphere encloses the original bounding sphere and the given bounds object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/media/j3d/Bounds.html#combine(javax.media.j3d.Bounds)">combine</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>boundsObject</CODE> - another bounds object</DL></DD></DL><HR><A NAME="combine(javax.media.j3d.Bounds[])"><!-- --></A><H3>combine</H3><PRE>public void <B>combine</B>(<A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>[]&nbsp;boundsObjects)</PRE><DL><DD>Combines this bounding sphere with an array of bounding objects so that the resulting bounding sphere encloses the original bounding sphere and the given array of bounds object.

⌨️ 快捷键说明

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