📄 tuple3i.html
字号:
<CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/vecmath/Tuple3i.html#set(int, int, int)">set</A></B>(int x, int y, int z)</CODE><BR> Sets the value of this tuple to the specified x, y, and z coordinates.</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/vecmath/Tuple3i.html#set(javax.vecmath.Tuple3i)">set</A></B>(<A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t1)</CODE><BR> Sets the value of this tuple to the value of tuple t1.</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/vecmath/Tuple3i.html#setX(int)">setX</A></B>(int x)</CODE><BR> Set the <i>x</i> coordinate.</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/vecmath/Tuple3i.html#setY(int)">setY</A></B>(int y)</CODE><BR> Set the <i>y</i> coordinate.</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/vecmath/Tuple3i.html#setZ(int)">setZ</A></B>(int z)</CODE><BR> Set the <i>z</i> coordinate.</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/vecmath/Tuple3i.html#sub(javax.vecmath.Tuple3i)">sub</A></B>(<A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t1)</CODE><BR> Sets the value of this tuple to the difference of itself and t1 (this = this - t1).</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/vecmath/Tuple3i.html#sub(javax.vecmath.Tuple3i, javax.vecmath.Tuple3i)">sub</A></B>(<A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t1, <A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t2)</CODE><BR> Sets the value of this tuple to the difference of tuples t1 and t2 (this = t1 - t2).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/vecmath/Tuple3i.html#toString()">toString</A></B>()</CODE><BR> Returns a string that contains the values of this Tuple3i.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="x"><!-- --></A><H3>x</H3><PRE>public int <B>x</B></PRE><DL><DD>The x coordinate.<P><DL></DL></DL><HR><A NAME="y"><!-- --></A><H3>y</H3><PRE>public int <B>y</B></PRE><DL><DD>The y coordinate.<P><DL></DL></DL><HR><A NAME="z"><!-- --></A><H3>z</H3><PRE>public int <B>z</B></PRE><DL><DD>The z coordinate.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="Tuple3i(int, int, int)"><!-- --></A><H3>Tuple3i</H3><PRE>public <B>Tuple3i</B>(int x, int y, int z)</PRE><DL><DD>Constructs and initializes a Tuple3i from the specified x, y, and z coordinates.<P><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x coordinate<DD><CODE>y</CODE> - the y coordinate<DD><CODE>z</CODE> - the z coordinate</DL></DL><HR><A NAME="Tuple3i(int[])"><!-- --></A><H3>Tuple3i</H3><PRE>public <B>Tuple3i</B>(int[] t)</PRE><DL><DD>Constructs and initializes a Tuple3i from the array of length 3.<P><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the array of length 3 containing x, y, and z in order.</DL></DL><HR><A NAME="Tuple3i(javax.vecmath.Tuple3i)"><!-- --></A><H3>Tuple3i</H3><PRE>public <B>Tuple3i</B>(<A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t1)</PRE><DL><DD>Constructs and initializes a Tuple3i from the specified Tuple3i.<P><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the Tuple3i containing the initialization x, y, and z data.</DL></DL><HR><A NAME="Tuple3i()"><!-- --></A><H3>Tuple3i</H3><PRE>public <B>Tuple3i</B>()</PRE><DL><DD>Constructs and initializes a Tuple3i to (0,0,0).<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="set(int, int, int)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(int x, int y, int z)</PRE><DL><DD>Sets the value of this tuple to the specified x, y, and z coordinates.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x coordinate<DD><CODE>y</CODE> - the y coordinate<DD><CODE>z</CODE> - the z coordinate</DL></DD></DL><HR><A NAME="set(int[])"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(int[] t)</PRE><DL><DD>Sets the value of this tuple to the specified coordinates in the array of length 3.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the array of length 3 containing x, y, and z in order.</DL></DD></DL><HR><A NAME="set(javax.vecmath.Tuple3i)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(<A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t1)</PRE><DL><DD>Sets the value of this tuple to the value of tuple t1.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the tuple to be copied</DL></DD></DL><HR><A NAME="get(int[])"><!-- --></A><H3>get</H3><PRE>public final void <B>get</B>(int[] t)</PRE><DL><DD>Copies the values of this tuple into the array t.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - is the array</DL></DD></DL><HR><A NAME="get(javax.vecmath.Tuple3i)"><!-- --></A><H3>get</H3><PRE>public final void <B>get</B>(<A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t)</PRE><DL><DD>Copies the values of this tuple into the tuple t.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - is the target tuple</DL></DD></DL><HR><A NAME="add(javax.vecmath.Tuple3i, javax.vecmath.Tuple3i)"><!-- --></A><H3>add</H3><PRE>public final void <B>add</B>(<A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t1, <A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t2)</PRE><DL><DD>Sets the value of this tuple to the sum of tuples t1 and t2.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the first tuple<DD><CODE>t2</CODE> - the second tuple</DL></DD></DL><HR><A NAME="add(javax.vecmath.Tuple3i)"><!-- --></A><H3>add</H3><PRE>public final void <B>add</B>(<A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t1)</PRE><DL><DD>Sets the value of this tuple to the sum of itself and t1.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the other tuple</DL></DD></DL><HR><A NAME="sub(javax.vecmath.Tuple3i, javax.vecmath.Tuple3i)"><!-- --></A><H3>sub</H3><PRE>public final void <B>sub</B>(<A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t1, <A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t2)</PRE><DL><DD>Sets the value of this tuple to the difference of tuples t1 and t2 (this = t1 - t2).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the first tuple<DD><CODE>t2</CODE> - the second tuple</DL></DD></DL><HR><A NAME="sub(javax.vecmath.Tuple3i)"><!-- --></A><H3>sub</H3><PRE>public final void <B>sub</B>(<A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t1)</PRE><DL><DD>Sets the value of this tuple to the difference of itself and t1 (this = this - t1).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the other tuple</DL></DD></DL><HR><A NAME="negate(javax.vecmath.Tuple3i)"><!-- --></A><H3>negate</H3><PRE>public final void <B>negate</B>(<A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t1)</PRE><DL><DD>Sets the value of this tuple to the negation of tuple t1.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the source tuple</DL></DD></DL><HR><A NAME="negate()"><!-- --></A><H3>negate</H3><PRE>public final void <B>negate</B>()</PRE><DL><DD>Negates the value of this tuple in place.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="scale(int, javax.vecmath.Tuple3i)"><!-- --></A><H3>scale</H3><PRE>public final void <B>scale</B>(int s, <A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t1)</PRE><DL><DD>Sets the value of this tuple to the scalar multiplication of tuple t1.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the scalar value<DD><CODE>t1</CODE> - the source tuple</DL></DD></DL><HR><A NAME="scale(int)"><!-- --></A><H3>scale</H3><PRE>public final void <B>scale</B>(int s)</PRE><DL><DD>Sets the value of this tuple to the scalar multiplication of the scale factor with this.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the scalar value</DL></DD></DL><HR><A NAME="scaleAdd(int, javax.vecmath.Tuple3i, javax.vecmath.Tuple3i)"><!-- --></A><H3>scaleAdd</H3><PRE>public final void <B>scaleAdd</B>(int s, <A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t1, <A HREF="../../javax/vecmath/Tuple3i.html" title="class in javax.vecmath">Tuple3i</A> t2)</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -