📄 gvector.html
字号:
</DD></DL><HR><A NAME="normalize(javax.vecmath.GVector)"><!-- --></A><H3>normalize</H3><PRE>public final void <B>normalize</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> v1)</PRE><DL><DD>Sets the value of this vector to the normalization of vector v1.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v1</CODE> - the un-normalized vector</DL></DD></DL><HR><A NAME="normalize()"><!-- --></A><H3>normalize</H3><PRE>public final void <B>normalize</B>()</PRE><DL><DD>Normalizes this vector in place.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="scale(double, javax.vecmath.GVector)"><!-- --></A><H3>scale</H3><PRE>public final void <B>scale</B>(double s, <A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> v1)</PRE><DL><DD>Sets the value of this vector to the scalar multiplication of the scale factor with the vector v1.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the scalar value<DD><CODE>v1</CODE> - the source vector</DL></DD></DL><HR><A NAME="scale(double)"><!-- --></A><H3>scale</H3><PRE>public final void <B>scale</B>(double s)</PRE><DL><DD>Scales this vector by the scale factor s.<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.GVector, javax.vecmath.GVector)"><!-- --></A><H3>scaleAdd</H3><PRE>public final void <B>scaleAdd</B>(double s, <A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> v1, <A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> v2)</PRE><DL><DD>Sets the value of this vector to the scalar multiplication by s of vector v1 plus vector v2 (this = s*v1 + v2).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the scalar value<DD><CODE>v1</CODE> - the vector to be multiplied<DD><CODE>v2</CODE> - the vector to be added</DL></DD></DL><HR><A NAME="add(javax.vecmath.GVector)"><!-- --></A><H3>add</H3><PRE>public final void <B>add</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> vector)</PRE><DL><DD>Sets the value of this vector to sum of itself and the specified vector<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vector</CODE> - the second vector</DL></DD></DL><HR><A NAME="add(javax.vecmath.GVector, javax.vecmath.GVector)"><!-- --></A><H3>add</H3><PRE>public final void <B>add</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> vector1, <A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> vector2)</PRE><DL><DD>Sets the value of this vector to the vector sum of vectors vector1 and vector2.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vector1</CODE> - the first vector<DD><CODE>vector2</CODE> - the second vector</DL></DD></DL><HR><A NAME="sub(javax.vecmath.GVector)"><!-- --></A><H3>sub</H3><PRE>public final void <B>sub</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> vector)</PRE><DL><DD>Sets the value of this vector to the vector difference of itself and vector (this = this - vector).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vector</CODE> - the other vector</DL></DD></DL><HR><A NAME="sub(javax.vecmath.GVector, javax.vecmath.GVector)"><!-- --></A><H3>sub</H3><PRE>public final void <B>sub</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> vector1, <A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> vector2)</PRE><DL><DD>Sets the value of this vector to the vector difference of vectors vector1 and vector2 (this = vector1 - vector2).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vector1</CODE> - the first vector<DD><CODE>vector2</CODE> - the second vector</DL></DD></DL><HR><A NAME="mul(javax.vecmath.GMatrix, javax.vecmath.GVector)"><!-- --></A><H3>mul</H3><PRE>public final void <B>mul</B>(<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> m1, <A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> v1)</PRE><DL><DD>Multiplies matrix m1 times Vector v1 and places the result into this vector (this = m1*v1).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m1</CODE> - The matrix in the multiplication<DD><CODE>v1</CODE> - The vector that is multiplied</DL></DD></DL><HR><A NAME="mul(javax.vecmath.GVector, javax.vecmath.GMatrix)"><!-- --></A><H3>mul</H3><PRE>public final void <B>mul</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> v1, <A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> m1)</PRE><DL><DD>Multiplies the transpose of vector v1 (ie, v1 becomes a row vector with respect to the multiplication) times matrix m1 and places the result into this vector (this = transpose(v1)*m1). The result is technically a row vector, but the GVector class only knows about column vectors, and so the result is stored as a column vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m1</CODE> - The matrix in the multiplication<DD><CODE>v1</CODE> - The vector that is temporarily transposed</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: this = -this.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="zero()"><!-- --></A><H3>zero</H3><PRE>public final void <B>zero</B>()</PRE><DL><DD>Sets all the values in this vector to zero.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setSize(int)"><!-- --></A><H3>setSize</H3><PRE>public final void <B>setSize</B>(int length)</PRE><DL><DD>Changes the size of this vector dynamically. If the size is increased no data values will be lost. If the size is decreased, only those data values whose vector positions were eliminated will be lost.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>length</CODE> - number of desired elements in this vector</DL></DD></DL><HR><A NAME="set(double[])"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(double[] vector)</PRE><DL><DD>Sets the value of this vector to the values found in the array parameter. The array should be at least equal in length to the number of elements in the vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vector</CODE> - the source array</DL></DD></DL><HR><A NAME="set(javax.vecmath.GVector)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(<A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> vector)</PRE><DL><DD>Sets the value of this vector to the values found in vector vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vector</CODE> - the source vector</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" title="class in javax.vecmath">Tuple2f</A> tuple)</PRE><DL><DD>Sets the value of this vector to the values in tuple<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tuple</CODE> - the source for the new GVector's new values</DL></DD></DL><HR><A NAME="set(javax.vecmath.Tuple3f)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(<A HREF="../../javax/vecmath/Tuple3f.html" title="class in javax.vecmath">Tuple3f</A> tuple)</PRE><DL><DD>Sets the value of this vector to the values in tuple<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tuple</CODE> - the source for the new GVector's new values</DL></DD></DL><HR><A NAME="set(javax.vecmath.Tuple3d)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(<A HREF="../../javax/vecmath/Tuple3d.html" title="class in javax.vecmath">Tuple3d</A> tuple)</PRE><DL><DD>Sets the value of this vector to the values in tuple<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tuple</CODE> - the source for the new GVector's new values</DL></DD></DL><HR><A NAME="set(javax.vecmath.Tuple4f)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(<A HREF="../../javax/vecmath/Tuple4f.html" title="class in javax.vecmath">Tuple4f</A> tuple)</PRE><DL><DD>Sets the value of this vector to the values in tuple<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tuple</CODE> - the source for the new GVector's new values</DL></DD></DL><HR><A NAME="set(javax.vecmath.Tuple4d)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(<A HREF="../../javax/vecmath/Tuple4d.html" title="class in javax.vecmath">Tuple4d</A> tuple)</PRE><DL><DD>Sets the value of this vector to the values in tuple<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tuple</CODE> - the source for the new GVector's new values</DL></DD></DL><HR><A NAME="getSize()"><!-- --></A><H3>getSize</H3><PRE>public final int <B>getSize</B>()</PRE><DL><DD>Returns the number of elements in this vector.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>number of elements in this vector</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -