📄 hirescoord.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Sun Jun 23 01:50:24 PDT 2002 --><TITLE>HiResCoord (Java 3D API)</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><SCRIPT>function asd(){parent.document.title="HiResCoord (Java 3D API)";}</SCRIPT><BODY BGCOLOR="white" onload="asd();"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/media/j3d/Group.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/ImageComponent.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="HiResCoord.html" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.media.j3d</FONT><BR>Class HiResCoord</H2><PRE>java.lang.Object | +--<B>javax.media.j3d.HiResCoord</B></PRE><HR><DL><DT>public class <B>HiResCoord</B><DT>extends java.lang.Object</DL><P>The HiResCoord object specifies the location of scene components within the Virtual Universe. The coordinates of all scene graph objects are relative to the HiResCoord of the Locale in which they are contained. <P> The HiResCoord defines a point using a set of three high-resolution coordinates, each of which consists of three two's-complement fixed-point numbers. Each high-resolution number consists of 256 total bits with a binary point at bit 128, or between the integers at index 3 and 4. A high-resolution coordinate of 1.0 is defined to be exactly 1 meter. This coordinate system is sufficient to describe a universe in excess of several billion light years across, yet still define objects smaller than a proton. <P> Java 3D uses integer arrays of length eight to define or extract a single 256-bit coordinate value. Java 3D interprets the integer at index 0 as the 32 most-significant bits and the integer at index 7 as the 32 least-significant bits.<P><P><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#HiResCoord()">HiResCoord</A></B>()</CODE><BR> Constructs and initializes a new HiResCoord located at (0, 0, 0).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#HiResCoord(javax.media.j3d.HiResCoord)">HiResCoord</A></B>(<A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A> hc)</CODE><BR> Constructs and initializes a new HiResCoord using the values provided in the argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#HiResCoord(int[], int[], int[])">HiResCoord</A></B>(int[] X, int[] Y, int[] Z)</CODE><BR> Constructs and initializes a new HiResCoord using the values provided in the argument.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#add(javax.media.j3d.HiResCoord, javax.media.j3d.HiResCoord)">add</A></B>(<A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A> h1, <A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A> h2)</CODE><BR> Adds two HiResCoords placing the results into this HiResCoord.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#difference(javax.media.j3d.HiResCoord, javax.vecmath.Vector3d)">difference</A></B>(<A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A> h1, <A HREF="../../../javax/vecmath/Vector3d.html">Vector3d</A> v)</CODE><BR> Subtracts the specified HiResCoord from this HiResCoord placing the difference vector into the specified double-precision vector.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#distance(javax.media.j3d.HiResCoord)">distance</A></B>(<A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A> h1)</CODE><BR> The floating point distance between the specified HiResCoord and this HiResCoord.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#equals(javax.media.j3d.HiResCoord)">equals</A></B>(<A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A> h1)</CODE><BR> Compares the specified HiResCoord to this HiResCoord.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object o1)</CODE><BR> Returns true if the Object o1 is of type HiResCoord and all of the data members of o1 are equal to the corresponding data members in this HiResCoord.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#getHiResCoord(javax.media.j3d.HiResCoord)">getHiResCoord</A></B>(<A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A> hc)</CODE><BR> Retrieves this HiResCoord's location and places it into the hires argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#getHiResCoord(int[], int[], int[])">getHiResCoord</A></B>(int[] X, int[] Y, int[] Z)</CODE><BR> Retrieves this HiResCoord's location and saves the coordinates in the specified arrays.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#getHiResCoordX(int[])">getHiResCoordX</A></B>(int[] X)</CODE><BR> Retrieves this HiResCoord's X value and stores it in the specified array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#getHiResCoordY(int[])">getHiResCoordY</A></B>(int[] Y)</CODE><BR> Retrieves this HiResCoord's Y value and stores it in the specified array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#getHiResCoordZ(int[])">getHiResCoordZ</A></B>(int[] Z)</CODE><BR> Retrieves this HiResCoord's Z value and stores it in the specified array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#negate()">negate</A></B>()</CODE><BR> Negates this HiResCoord</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#negate(javax.media.j3d.HiResCoord)">negate</A></B>(<A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A> h1)</CODE><BR> Negates the specified HiResCoords and places the results into this HiResCoord.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#scale(int)">scale</A></B>(int scale)</CODE><BR> Scales this HiResCoord by the specified value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#scale(int, javax.media.j3d.HiResCoord)">scale</A></B>(int scale, <A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A> h1)</CODE><BR> Scales the specified HiResCoords by the specified value and places the results into this HiResCoord.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#setHiResCoord(javax.media.j3d.HiResCoord)">setHiResCoord</A></B>(<A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A> hires)</CODE><BR> Sets this HiResCoord to the location specified by the hires provided.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#setHiResCoord(int[], int[], int[])">setHiResCoord</A></B>(int[] X, int[] Y, int[] Z)</CODE><BR> Sets this HiResCoord to the location specified by the parameters provided.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#setHiResCoordX(int[])">setHiResCoordX</A></B>(int[] X)</CODE><BR> Sets this HiResCoord's X value to that specified by the argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#setHiResCoordY(int[])">setHiResCoordY</A></B>(int[] Y)</CODE><BR> Sets this HiResCoord's Y value to that specified by the argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#setHiResCoordZ(int[])">setHiResCoordZ</A></B>(int[] Z)</CODE><BR> Sets this HiResCoord's Z value to that specified by the argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/HiResCoord.html#sub(javax.media.j3d.HiResCoord, javax.media.j3d.HiResCoord)">sub</A></B>(<A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A> h1, <A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A> h2)</CODE><BR> Subtracts two HiResCoords placing the results into this HiResCoord.</TD></TR></TABLE> <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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <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="HiResCoord(int[], int[], int[])"><!-- --></A><H3>HiResCoord</H3><PRE>public <B>HiResCoord</B>(int[] X, int[] Y, int[] Z)</PRE><DL><DD>Constructs and initializes a new HiResCoord using the values provided in the argument. The HiResCoord represents 768 bits of floating point 3-Space.<P></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -