⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gvector.html

📁 JAVA多媒体开发类库说明
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</DD></DL><HR><A NAME="getElement(int)"><!-- --></A><H3>getElement</H3><PRE>public final double <B>getElement</B>(int&nbsp;index)</PRE><DL><DD>Retrieves the value at the specified index value of this vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the element to retrieve (zero indexed)<DT><B>Returns:</B><DD>the value at the indexed element</DL></DD></DL><HR><A NAME="setElement(int, double)"><!-- --></A><H3>setElement</H3><PRE>public final void <B>setElement</B>(int&nbsp;index,                             double&nbsp;value)</PRE><DL><DD>Modifies the value at the specified index of this vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index if the element to modify (zero indexed)<DD><CODE>value</CODE> - the new vector element value</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 GVector.<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="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 GVector objects with identical data values (i.e., GVector.equals returns true) will return the same hash number.  Two GVector 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="equals(javax.vecmath.GVector)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;vector1)</PRE><DL><DD>Returns true if all of the data members of GVector vector1 are equal to the corresponding data members in this GVector.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vector1</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&nbsp;o1)</PRE><DL><DD>Returns true if the Object o1 is of type GMatrix and all of the data members of o1 are equal to the corresponding data members in this GMatrix.<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>o1</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.GVector, double)"><!-- --></A><H3>epsilonEquals</H3><PRE>public boolean <B>epsilonEquals</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;v1,                             double&nbsp;epsilon)</PRE><DL><DD>Returns true if the L-infinite distance between this vector and vector v1 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), . . .  ].<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v1</CODE> - The vector to be compared to this vector<DD><CODE>epsilon</CODE> - the threshold value</DL></DD></DL><HR><A NAME="dot(javax.vecmath.GVector)"><!-- --></A><H3>dot</H3><PRE>public final double <B>dot</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;v1)</PRE><DL><DD>Returns the dot product of this vector and vector v1.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v1</CODE> - the other vector<DT><B>Returns:</B><DD>the dot product of this and v1</DL></DD></DL><HR><A NAME="SVDBackSolve(javax.vecmath.GMatrix, javax.vecmath.GMatrix, javax.vecmath.GMatrix, javax.vecmath.GVector)"><!-- --></A><H3>SVDBackSolve</H3><PRE>public final void <B>SVDBackSolve</B>(<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A>&nbsp;U,                               <A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A>&nbsp;W,                               <A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A>&nbsp;V,                               <A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;b)</PRE><DL><DD>Solves for x in Ax = b, where x is this vector (nx1), A is mxn,  b is mx1, and A = U*W*transpose(V); U,W,V must  be precomputed and can be found by taking the singular value   decomposition (SVD) of A using the method SVD found in the   GMatrix class.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>U</CODE> - The U matrix produced by the GMatrix method SVD<DD><CODE>W</CODE> - The W matrix produced by the GMatrix method SVD<DD><CODE>V</CODE> - The V matrix produced by the GMatrix method SVD<DD><CODE>b</CODE> - The b vector in the linear equation Ax = b</DL></DD></DL><HR><A NAME="LUDBackSolve(javax.vecmath.GMatrix, javax.vecmath.GVector, javax.vecmath.GVector)"><!-- --></A><H3>LUDBackSolve</H3><PRE>public final void <B>LUDBackSolve</B>(<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A>&nbsp;LU,                               <A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;b,                               <A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;permutation)</PRE><DL><DD>LU Decomposition Back Solve; this method takes the LU matrix and the permutation vector produced by the GMatrix method LUD and solves the equation (LU)*x = b by placing the solution vector x into this vector.  This vector should be the same length or  longer than b.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>LU</CODE> - The matrix into which the lower and upper decompostions have been placed<DD><CODE>b</CODE> - The b vector in the equation (LU)*x = b<DD><CODE>permutation</CODE> - The row permuations that were necessary to  produce the LU matrix parameter</DL></DD></DL><HR><A NAME="angle(javax.vecmath.GVector)"><!-- --></A><H3>angle</H3><PRE>public final double <B>angle</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;v1)</PRE><DL><DD>Returns the (n-space) angle in radians between this vector and   the vector parameter; the return value is constrained to the   range [0,PI].<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v1</CODE> - The other vector<DT><B>Returns:</B><DD>The angle in radians in the range [0,PI]</DL></DD></DL><HR><A NAME="interpolate(javax.vecmath.GVector, javax.vecmath.GVector, float)"><!-- --></A><H3>interpolate</H3><PRE>public final void <B>interpolate</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;v1,                              <A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;v2,                              float&nbsp;alpha)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Use interpolate(GVector, GVector, double) instead</I><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="interpolate(javax.vecmath.GVector, float)"><!-- --></A><H3>interpolate</H3><PRE>public final void <B>interpolate</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;v1,                              float&nbsp;alpha)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Use interpolate(GVector, double) instead</I><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="interpolate(javax.vecmath.GVector, javax.vecmath.GVector, double)"><!-- --></A><H3>interpolate</H3><PRE>public final void <B>interpolate</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;v1,                              <A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;v2,                              double&nbsp;alpha)</PRE><DL><DD>Linearly interpolates between vectors v1 and v2 and places the  result into this tuple:  this = (1-alpha)*v1 + alpha*v2.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v1</CODE> - the first vector<DD><CODE>v2</CODE> - the second vector<DD><CODE>alpha</CODE> - the alpha interpolation parameter</DL></DD></DL><HR><A NAME="interpolate(javax.vecmath.GVector, double)"><!-- --></A><H3>interpolate</H3><PRE>public final void <B>interpolate</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A>&nbsp;v1,                              double&nbsp;alpha)</PRE><DL><DD>Linearly interpolates between this vector and vector v1 and   places the result into this tuple:  this = (1-alpha)*this + alpha*v1.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v1</CODE> - the first vector<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><!-- ========= 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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/vecmath/Matrix3d.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/GVector.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="GVector.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -