📄 tuple4d.html
字号:
<A NAME="get(double[])"><!-- --></A><H3>get</H3><PRE>public final void <B>get</B>(double[] t)</PRE><DL><DD>Gets the value of this tuple and places it into the array t of length four in x,y,z,w order.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the array of length four</DL></DD></DL><HR><A NAME="get(javax.vecmath.Tuple4d)"><!-- --></A><H3>get</H3><PRE>public final void <B>get</B>(<A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t)</PRE><DL><DD>Gets the value of this tuple and places it into the Tuple4d argument of length four in x,y,z,w order.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the Tuple into which the values will be copied</DL></DD></DL><HR><A NAME="add(javax.vecmath.Tuple4d, javax.vecmath.Tuple4d)"><!-- --></A><H3>add</H3><PRE>public final void <B>add</B>(<A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t1, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t2)</PRE><DL><DD>Sets the value of this tuple to the tuple 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.Tuple4d)"><!-- --></A><H3>add</H3><PRE>public final void <B>add</B>(<A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t1)</PRE><DL><DD>Sets the value of this tuple to the 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.Tuple4d, javax.vecmath.Tuple4d)"><!-- --></A><H3>sub</H3><PRE>public final void <B>sub</B>(<A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t1, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</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.Tuple4d)"><!-- --></A><H3>sub</H3><PRE>public final void <B>sub</B>(<A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t1)</PRE><DL><DD>Sets the value of this tuple to the 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 tuple</DL></DD></DL><HR><A NAME="negate(javax.vecmath.Tuple4d)"><!-- --></A><H3>negate</H3><PRE>public final void <B>negate</B>(<A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</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(double, javax.vecmath.Tuple4d)"><!-- --></A><H3>scale</H3><PRE>public final void <B>scale</B>(double s, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t1)</PRE><DL><DD>Sets the value of this tuple to the scalar multiplication of the scale factor with the 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 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(double, javax.vecmath.Tuple4d, javax.vecmath.Tuple4d)"><!-- --></A><H3>scaleAdd</H3><PRE>public final void <B>scaleAdd</B>(double s, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t1, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t2)</PRE><DL><DD>Sets the value of this tuple to the scalar multiplication by s 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.Tuple4d)"><!-- --></A><H3>scaleAdd</H3><PRE>public final void <B>scaleAdd</B>(float s, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t1)</PRE><DL><DD><B>Deprecated.</B> <I>Use scaleAdd(double,Tuple4d) instead</I><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="scaleAdd(double, javax.vecmath.Tuple4d)"><!-- --></A><H3>scaleAdd</H3><PRE>public final void <B>scaleAdd</B>(double s, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</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 Tuple4d. 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.Tuple4d)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t1)</PRE><DL><DD>Returns true if all of the data members of Tuple4d t1 are equal to the corresponding data members in this Tuple4d.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - the tuple 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 Tuple4d and all of the data members of t1 are equal to the corresponding data members in this Tuple4d.<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.Tuple4d, double)"><!-- --></A><H3>epsilonEquals</H3><PRE>public boolean <B>epsilonEquals</B>(<A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t1, double 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 Tuple4d objects with identical data values (i.e., Tuple4d.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.Tuple4d)"><!-- --></A><H3>clamp</H3><PRE>public final void <B>clamp</B>(float min, float max, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t)</PRE><DL><DD><B>Deprecated.</B> <I>Use clamp(double,double,Tuple4d) instead</I><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clamp(double, double, javax.vecmath.Tuple4d)"><!-- --></A><H3>clamp</H3><PRE>public final void <B>clamp</B>(double min, double max, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</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.Tuple4d)"><!-- --></A><H3>clampMin</H3><PRE>public final void <B>clampMin</B>(float min, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t)</PRE><DL><DD><B>Deprecated.</B> <I>Use clampMin(double,Tuple4d) instead</I><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clampMin(double, javax.vecmath.Tuple4d)"><!-- --></A><H3>clampMin</H3><PRE>public final void <B>clampMin</B>(double min, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</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.Tuple4d)"><!-- --></A><H3>clampMax</H3><PRE>public final void <B>clampMax</B>(float max, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> t)</PRE><DL><DD><B>Deprecated.</B> <I>Use clampMax(double,Tuple4d) instead</I><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clampMax(double, javax.vecmath.Tuple4d)"><!-- --></A><H3>clampMax</H3><PRE>public final void <B>clampMax</B>(double max, <A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</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.Tuple4d)"><!-- --></A><H3>absolute</H3><PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -