📄 tuple2d.html
字号:
double max, <A HREF="../../javax/vecmath/Tuple2d.html" title="class in javax.vecmath">Tuple2d</A> t)</PRE><DL><DD>Clamps the tuple parameter to the range [low, high] and places the values into this tuple.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>min</CODE> - the lowest value in the tuple after clamping<DD><CODE>max</CODE> - the highest value in the tuple after clamping<DD><CODE>t</CODE> - the source tuple, which will not be modified</DL></DD></DL><HR><A NAME="clampMin(double, javax.vecmath.Tuple2d)"><!-- --></A><H3>clampMin</H3><PRE>public final void <B>clampMin</B>(double min, <A HREF="../../javax/vecmath/Tuple2d.html" title="class in javax.vecmath">Tuple2d</A> t)</PRE><DL><DD>Clamps the minimum value of the tuple parameter to the min parameter and places the values into this tuple.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>min</CODE> - the lowest value in the tuple after clamping<DD><CODE>t</CODE> - the source tuple, which will not be modified</DL></DD></DL><HR><A NAME="clampMax(double, javax.vecmath.Tuple2d)"><!-- --></A><H3>clampMax</H3><PRE>public final void <B>clampMax</B>(double max, <A HREF="../../javax/vecmath/Tuple2d.html" title="class in javax.vecmath">Tuple2d</A> t)</PRE><DL><DD>Clamps the maximum value of the tuple parameter to the max parameter and places the values into this tuple.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>max</CODE> - the highest value in the tuple after clamping<DD><CODE>t</CODE> - the source tuple, which will not be modified</DL></DD></DL><HR><A NAME="absolute(javax.vecmath.Tuple2d)"><!-- --></A><H3>absolute</H3><PRE>public final void <B>absolute</B>(<A HREF="../../javax/vecmath/Tuple2d.html" title="class in javax.vecmath">Tuple2d</A> t)</PRE><DL><DD>Sets each component of the tuple parameter to its absolute value and places the modified values into this tuple.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the source tuple, which will not be modified</DL></DD></DL><HR><A NAME="clamp(double, double)"><!-- --></A><H3>clamp</H3><PRE>public final void <B>clamp</B>(double min, double max)</PRE><DL><DD>Clamps this tuple to the range [low, high].<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>min</CODE> - the lowest value in this tuple after clamping<DD><CODE>max</CODE> - the highest value in this tuple after clamping</DL></DD></DL><HR><A NAME="clampMin(double)"><!-- --></A><H3>clampMin</H3><PRE>public final void <B>clampMin</B>(double min)</PRE><DL><DD>Clamps the minimum value of this tuple to the min parameter.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>min</CODE> - the lowest value in this tuple after clamping</DL></DD></DL><HR><A NAME="clampMax(double)"><!-- --></A><H3>clampMax</H3><PRE>public final void <B>clampMax</B>(double max)</PRE><DL><DD>Clamps the maximum value of this tuple to the max parameter.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>max</CODE> - the highest value in the tuple after clamping</DL></DD></DL><HR><A NAME="absolute()"><!-- --></A><H3>absolute</H3><PRE>public final void <B>absolute</B>()</PRE><DL><DD>Sets each component of this tuple to its absolute value.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="interpolate(javax.vecmath.Tuple2d, javax.vecmath.Tuple2d, double)"><!-- --></A><H3>interpolate</H3><PRE>public final void <B>interpolate</B>(<A HREF="../../javax/vecmath/Tuple2d.html" title="class in javax.vecmath">Tuple2d</A> t1, <A HREF="../../javax/vecmath/Tuple2d.html" title="class in javax.vecmath">Tuple2d</A> t2, double alpha)</PRE><DL><DD>Linearly interpolates between tuples t1 and t2 and places the result into this tuple: this = (1-alpha)*t1 + alpha*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<DD><CODE>alpha</CODE> - the alpha interpolation parameter</DL></DD></DL><HR><A NAME="interpolate(javax.vecmath.Tuple2d, double)"><!-- --></A><H3>interpolate</H3><PRE>public final void <B>interpolate</B>(<A HREF="../../javax/vecmath/Tuple2d.html" title="class in javax.vecmath">Tuple2d</A> t1, double alpha)</PRE><DL><DD>Linearly interpolates between this tuple and tuple t1 and places the result into this tuple: this = (1-alpha)*this + alpha*t1.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the first tuple<DD><CODE>alpha</CODE> - the alpha interpolation parameter</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Creates a new object of the same class as this object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a clone of this instance.<DT><B>Throws:</B><DD><CODE>java.lang.OutOfMemoryError</CODE> - if there is not enough memory.<DT><B>Since:</B></DT> <DD>vecmath 1.3</DD><DT><B>See Also:</B><DD><CODE>Cloneable</CODE></DL></DD></DL><HR><A NAME="getX()"><!-- --></A><H3>getX</H3><PRE>public final double <B>getX</B>()</PRE><DL><DD>Get the <i>x</i> coordinate.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <i>x</i> coordinate.<DT><B>Since:</B></DT> <DD>vecmath 1.5</DD></DL></DD></DL><HR><A NAME="setX(double)"><!-- --></A><H3>setX</H3><PRE>public final void <B>setX</B>(double x)</PRE><DL><DD>Set the <i>x</i> coordinate.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - value to <i>x</i> coordinate.<DT><B>Since:</B></DT> <DD>vecmath 1.5</DD></DL></DD></DL><HR><A NAME="getY()"><!-- --></A><H3>getY</H3><PRE>public final double <B>getY</B>()</PRE><DL><DD>Get the <i>y</i> coordinate.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <i>y</i> coordinate.<DT><B>Since:</B></DT> <DD>vecmath 1.5</DD></DL></DD></DL><HR><A NAME="setY(double)"><!-- --></A><H3>setY</H3><PRE>public final void <B>setY</B>(double y)</PRE><DL><DD>Set the <i>y</i> coordinate.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>y</CODE> - value to <i>y</i> coordinate.<DT><B>Since:</B></DT> <DD>vecmath 1.5</DD></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <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/vecmath/TexCoord4f.html" title="class in javax.vecmath"><B>PREV CLASS</B></A> <A HREF="../../javax/vecmath/Tuple2f.html" title="class in javax.vecmath"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?javax/vecmath/Tuple2d.html" target="_top"><B>FRAMES</B></A> <A HREF="Tuple2d.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1">Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../LICENSE-SPEC.html">license terms</a>.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -