📄 tuple2d.html
字号:
<TD><CODE><B><A HREF="../../javax/vecmath/Tuple2d.html#scaleAdd(double, javax.vecmath.Tuple2d, javax.vecmath.Tuple2d)">scaleAdd</A></B>(double s, <A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t1, <A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</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/Tuple2d.html#set(double[])">set</A></B>(double[] t)</CODE><BR> Sets the value of this tuple from the 2 values specified in the 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/vecmath/Tuple2d.html#set(double, double)">set</A></B>(double x, double y)</CODE><BR> Sets the value of this tuple to the specified xy 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/Tuple2d.html#set(javax.vecmath.Tuple2d)">set</A></B>(<A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t1)</CODE><BR> Sets the value of this tuple to the value of the Tuple2d 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/vecmath/Tuple2d.html#set(javax.vecmath.Tuple2f)">set</A></B>(<A HREF="../../javax/vecmath/Tuple2f.html">Tuple2f</A> t1)</CODE><BR> Sets the value of this tuple to the value of Tuple2f 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/Tuple2d.html#sub(javax.vecmath.Tuple2d)">sub</A></B>(<A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t1)</CODE><BR> Sets the value of this tuple to the vector difference of itself and tuple 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/Tuple2d.html#sub(javax.vecmath.Tuple2d, javax.vecmath.Tuple2d)">sub</A></B>(<A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t1, <A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t2)</CODE><BR> Sets the value of this tuple to the vector difference of tuple 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/Tuple2d.html#toString()">toString</A></B>()</CODE><BR> Returns a string that contains the values of this Tuple2d.</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>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></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><!-- ========= 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="Tuple2d(double, double)"><!-- --></A><H3>Tuple2d</H3><PRE>public <B>Tuple2d</B>(double x, double y)</PRE><DL><DD>Constructs and initializes a Tuple2d from the specified xy coordinates.<P><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x coordinate<DD><CODE>y</CODE> - the y coordinate</DL><HR><A NAME="Tuple2d(double[])"><!-- --></A><H3>Tuple2d</H3><PRE>public <B>Tuple2d</B>(double[] t)</PRE><DL><DD>Constructs and initializes a Tuple2d from the specified array.<P><DT><B>Parameters:</B><DD><CODE>t</CODE> - the array of length 2 containing xy in order</DL><HR><A NAME="Tuple2d(javax.vecmath.Tuple2d)"><!-- --></A><H3>Tuple2d</H3><PRE>public <B>Tuple2d</B>(<A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t1)</PRE><DL><DD>Constructs and initializes a Tuple2d from the specified Tuple2d.<P><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the Tuple2d containing the initialization x y data</DL><HR><A NAME="Tuple2d(javax.vecmath.Tuple2f)"><!-- --></A><H3>Tuple2d</H3><PRE>public <B>Tuple2d</B>(<A HREF="../../javax/vecmath/Tuple2f.html">Tuple2f</A> t1)</PRE><DL><DD>Constructs and initializes a Tuple2d from the specified Tuple2f.<P><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the Tuple2f containing the initialization x y data</DL><HR><A NAME="Tuple2d()"><!-- --></A><H3>Tuple2d</H3><PRE>public <B>Tuple2d</B>()</PRE><DL><DD>Constructs and initializes a Tuple2d to (0,0).<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="set(double, double)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(double x, double y)</PRE><DL><DD>Sets the value of this tuple to the specified xy 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</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 from the 2 values specified in the array.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the array of length 2 containing xy in order</DL></DD></DL><HR><A NAME="set(javax.vecmath.Tuple2d)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(<A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t1)</PRE><DL><DD>Sets the value of this tuple to the value of the Tuple2d argument.<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.Tuple2f)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(<A HREF="../../javax/vecmath/Tuple2f.html">Tuple2f</A> t1)</PRE><DL><DD>Sets the value of this tuple to the value of Tuple2f 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(double[])"><!-- --></A><H3>get</H3><PRE>public final void <B>get</B>(double[] t)</PRE><DL><DD>Copies the value of the elements of this tuple into the array t.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the array that will contain the values of the vector</DL></DD></DL><HR><A NAME="add(javax.vecmath.Tuple2d, javax.vecmath.Tuple2d)"><!-- --></A><H3>add</H3><PRE>public final void <B>add</B>(<A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t1, <A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t2)</PRE><DL><DD>Sets the value of this tuple to the vector 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.Tuple2d)"><!-- --></A><H3>add</H3><PRE>public final void <B>add</B>(<A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t1)</PRE><DL><DD>Sets the value of this tuple to the vector sum of itself and tuple 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.Tuple2d, javax.vecmath.Tuple2d)"><!-- --></A><H3>sub</H3><PRE>public final void <B>sub</B>(<A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t1, <A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t2)</PRE><DL><DD>Sets the value of this tuple to the vector difference of tuple 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.Tuple2d)"><!-- --></A><H3>sub</H3><PRE>public final void <B>sub</B>(<A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</A> t1)</PRE><DL><DD>Sets the value of this tuple to the vector difference of itself and tuple t1 (this = this - t1).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the other vector</DL></DD></DL><HR><A NAME="negate(javax.vecmath.Tuple2d)"><!-- --></A><H3>negate</H3><PRE>public final void <B>negate</B>(<A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</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 vector</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 vector in place.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="scale(double, javax.vecmath.Tuple2d)"><!-- --></A><H3>scale</H3><PRE>public final void <B>scale</B>(double s, <A HREF="../../javax/vecmath/Tuple2d.html">Tuple2d</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(double)"><!-- --></A><H3>scale</H3><PRE>public final void <B>scale</B>(double s)</PRE><DL><DD>Sets the value of this tuple to the scalar multiplication of itself.<P><DD><DL></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -