📄 tuple3d.html
字号:
</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/vecmath/Tuple3d.html#getZ()">getZ</A></B>()</CODE><BR> Get the <i>z</i> coordinate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/vecmath/Tuple3d.html#hashCode()">hashCode</A></B>()</CODE><BR> Returns a hash code value based on the data values in this object.</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/Tuple3d.html#interpolate(javax.vecmath.Tuple3d, double)">interpolate</A></B>(<A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t1, double alpha)</CODE><BR> Linearly interpolates between this tuple and tuple t1 and places the result into this tuple: this = (1-alpha)*this + alpha*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/Tuple3d.html#interpolate(javax.vecmath.Tuple3d, float)">interpolate</A></B>(<A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t1, float alpha)</CODE><BR> <B>Deprecated.</B> <I>Use interpolate(Tuple3d,double) instead</I></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/Tuple3d.html#interpolate(javax.vecmath.Tuple3d, javax.vecmath.Tuple3d, double)">interpolate</A></B>(<A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t1, <A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t2, double alpha)</CODE><BR> Linearly interpolates between tuples t1 and t2 and places the result into this tuple: this = (1-alpha)*t1 + alpha*t2.</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/Tuple3d.html#interpolate(javax.vecmath.Tuple3d, javax.vecmath.Tuple3d, float)">interpolate</A></B>(<A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t1, <A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t2, float alpha)</CODE><BR> <B>Deprecated.</B> <I>Use interpolate(Tuple3d,Tuple3d,double) instead</I></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/Tuple3d.html#negate()">negate</A></B>()</CODE><BR> Negates the value of this tuple in place.</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/Tuple3d.html#negate(javax.vecmath.Tuple3d)">negate</A></B>(<A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t1)</CODE><BR> Sets the value of this tuple to the negation 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/Tuple3d.html#scale(double)">scale</A></B>(double s)</CODE><BR> Sets the value of this tuple to the scalar multiplication of itself.</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/Tuple3d.html#scale(double, javax.vecmath.Tuple3d)">scale</A></B>(double s, <A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t1)</CODE><BR> Sets the value of this tuple to the scalar multiplication 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/Tuple3d.html#scaleAdd(double, javax.vecmath.Tuple3d)">scaleAdd</A></B>(double s, <A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t1)</CODE><BR> Sets the value of this tuple to the scalar multiplication of itself and then adds tuple t1 (this = s*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/Tuple3d.html#scaleAdd(double, javax.vecmath.Tuple3d, javax.vecmath.Tuple3d)">scaleAdd</A></B>(double s, <A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t1, <A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t2)</CODE><BR> Sets the value of this tuple to the scalar multiplication of tuple t1 and then adds tuple t2 (this = s*t1 + t2).</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/Tuple3d.html#scaleAdd(double, javax.vecmath.Tuple3f)">scaleAdd</A></B>(double s, <A HREF="../../javax/vecmath/Tuple3f.html" title="class in javax.vecmath">Tuple3f</A> t1)</CODE><BR> <B>Deprecated.</B> <I>Use scaleAdd(double,Tuple3d) instead</I></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/Tuple3d.html#set(double[])">set</A></B>(double[] t)</CODE><BR> Sets the value of this tuple to the value of the xyz coordinates located in the array of length 3.</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/Tuple3d.html#set(double, double, double)">set</A></B>(double x, double y, double z)</CODE><BR> Sets the value of this tuple to the specified xyz 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/Tuple3d.html#set(javax.vecmath.Tuple3d)">set</A></B>(<A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</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/Tuple3d.html#set(javax.vecmath.Tuple3f)">set</A></B>(<A HREF="../../javax/vecmath/Tuple3f.html" title="class in javax.vecmath">Tuple3f</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/Tuple3d.html#setX(double)">setX</A></B>(double 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/Tuple3d.html#setY(double)">setY</A></B>(double 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/Tuple3d.html#setZ(double)">setZ</A></B>(double 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/Tuple3d.html#sub(javax.vecmath.Tuple3d)">sub</A></B>(<A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</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/Tuple3d.html#sub(javax.vecmath.Tuple3d, javax.vecmath.Tuple3d)">sub</A></B>(<A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t1, <A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</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/Tuple3d.html#toString()">toString</A></B>()</CODE><BR> Returns a string that contains the values of this Tuple3d.</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 double <B>x</B></PRE><DL><DD>The x coordinate.<P><DL></DL></DL><HR><A NAME="y"><!-- --></A><H3>y</H3><PRE>public double <B>y</B></PRE><DL><DD>The y coordinate.<P><DL></DL></DL><HR><A NAME="z"><!-- --></A><H3>z</H3><PRE>public double <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="Tuple3d(double, double, double)"><!-- --></A><H3>Tuple3d</H3><PRE>public <B>Tuple3d</B>(double x, double y, double z)</PRE><DL><DD>Constructs and initializes a Tuple3d from the specified xyz 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="Tuple3d(double[])"><!-- --></A><H3>Tuple3d</H3><PRE>public <B>Tuple3d</B>(double[] t)</PRE><DL><DD>Constructs and initializes a Tuple3d from the array of length 3.<P><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the array of length 3 containing xyz in order</DL></DL><HR><A NAME="Tuple3d(javax.vecmath.Tuple3d)"><!-- --></A><H3>Tuple3d</H3><PRE>public <B>Tuple3d</B>(<A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> t1)</PRE><DL><DD>Constructs and initializes a Tuple3d from the specified Tuple3d.<P><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the Tuple3d containing the initialization x y z data</DL></DL><HR><A NAME="Tuple3d(javax.vecmath.Tuple3f)"><!-- --></A><H3>Tuple3d</H3><PRE>public <B>Tuple3d</B>(<A HREF="../../javax/vecmath/Tuple3f.html" title="class in javax.vecmath">Tuple3f</A> t1)</PRE><DL><DD>Constructs and initializes a Tuple3d from the specified Tuple3f.<P><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the Tuple3f containing the initialization x y z data</DL></DL><HR><A NAME="Tuple3d()"><!-- --></A><H3>Tuple3d</H3><PRE>public <B>Tuple3d</B>()</PRE><DL><DD>Constructs and initializes a Tuple3d 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(double, double, double)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(double x, double y, double z)</PRE><DL><DD>Sets the value of this tuple to the specified xyz 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(double[])"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(double[] t)</PRE><DL><DD>Sets the value of this tuple to the value of the xyz coordinates located 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 xyz in order</DL></DD></DL><HR><A NAME="set(javax.vecmath.Tuple3d)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(<A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</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="set(javax.vecmath.Tuple3f)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(<A HREF="../../javax/vecmath/Tuple3f.html" title="class in javax.vecmath">Tuple3f</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -