📄 tuple4f.html
字号:
<A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</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(float)"><!-- --></A><H3>scale</H3><PRE>public final void <B>scale</B>(float 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(float, javax.vecmath.Tuple4f, javax.vecmath.Tuple4f)"><!-- --></A><H3>scaleAdd</H3><PRE>public final void <B>scaleAdd</B>(float s, <A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</A> t1, <A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</A> t2)</PRE><DL><DD>Sets the value of this tuple to the scalar multiplication of tuple t1 plus tuple t2 (this = s*t1 + t2).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the scalar value<DD><CODE>t1</CODE> - the tuple to be multipled<DD><CODE>t2</CODE> - the tuple to be added</DL></DD></DL><HR><A NAME="scaleAdd(float, javax.vecmath.Tuple4f)"><!-- --></A><H3>scaleAdd</H3><PRE>public final void <B>scaleAdd</B>(float s, <A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</A> t1)</PRE><DL><DD>Sets the value of this tuple to the scalar multiplication of itself and then adds tuple t1 (this = s*this + t1).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the scalar value<DD><CODE>t1</CODE> - the tuple to be added</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns a string that contains the values of this Tuple4f. The form is (x,y,z,w).<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the String representation</DL></DD></DL><HR><A NAME="equals(javax.vecmath.Tuple4f)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</A> t1)</PRE><DL><DD>Returns true if all of the data members of Tuple4f t1 are equal to the corresponding data members in this Tuple4f.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the vector with which the comparison is made<DT><B>Returns:</B><DD>true or false</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object t1)</PRE><DL><DD>Returns true if the Object t1 is of type Tuple4f and all of the data members of t1 are equal to the corresponding data members in this Tuple4f.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the object with which the comparison is made<DT><B>Returns:</B><DD>true or false</DL></DD></DL><HR><A NAME="epsilonEquals(javax.vecmath.Tuple4f, float)"><!-- --></A><H3>epsilonEquals</H3><PRE>public boolean <B>epsilonEquals</B>(<A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</A> t1, float epsilon)</PRE><DL><DD>Returns true if the L-infinite distance between this tuple and tuple t1 is less than or equal to the epsilon parameter, otherwise returns false. The L-infinite distance is equal to MAX[abs(x1-x2), abs(y1-y2), abs(z1-z2), abs(w1-w2)].<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the tuple to be compared to this tuple<DD><CODE>epsilon</CODE> - the threshold value<DT><B>Returns:</B><DD>true or false</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hash code value based on the data values in this object. Two different Tuple4f objects with identical data values (i.e., Tuple4f.equals returns true) will return the same hash code value. Two objects with different data members may return the same hash value, although this is not likely.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the integer hash code value</DL></DD></DL><HR><A NAME="clamp(float, float, javax.vecmath.Tuple4f)"><!-- --></A><H3>clamp</H3><PRE>public final void <B>clamp</B>(float min, float max, <A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</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(float, javax.vecmath.Tuple4f)"><!-- --></A><H3>clampMin</H3><PRE>public final void <B>clampMin</B>(float min, <A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</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(float, javax.vecmath.Tuple4f)"><!-- --></A><H3>clampMax</H3><PRE>public final void <B>clampMax</B>(float max, <A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</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.Tuple4f)"><!-- --></A><H3>absolute</H3><PRE>public final void <B>absolute</B>(<A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</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(float, float)"><!-- --></A><H3>clamp</H3><PRE>public final void <B>clamp</B>(float min, float 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(float)"><!-- --></A><H3>clampMin</H3><PRE>public final void <B>clampMin</B>(float 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(float)"><!-- --></A><H3>clampMax</H3><PRE>public final void <B>clampMax</B>(float 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.Tuple4f, javax.vecmath.Tuple4f, float)"><!-- --></A><H3>interpolate</H3><PRE>public void <B>interpolate</B>(<A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</A> t1, <A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</A> t2, float 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.Tuple4f, float)"><!-- --></A><H3>interpolate</H3><PRE>public void <B>interpolate</B>(<A HREF="../../javax/vecmath/Tuple4f.html">Tuple4f</A> t1, float 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><DD>Java 3D 1.3</DD></DD><DT><B>See Also:</B><DD><CODE>Cloneable</CODE></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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/vecmath/Tuple4d.html"><B>PREV CLASS</B></A> <A HREF="../../javax/vecmath/Tuple4i.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="Tuple4f.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 | <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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -