Uses of Class
javax.vecmath.GVector
Packages that use GVector
- 
Uses of GVector in javax.vecmath
Methods in javax.vecmath with parameters of type GVectorModifier and TypeMethodDescriptionfinal voidSets the value of this vector to sum of itself and the specified vectorfinal voidSets the value of this vector to the vector sum of vectors vector1 and vector2.final doubleReturns the (n-space) angle in radians between this vector and the vector parameter; the return value is constrained to the range [0,PI].final doubleReturns the dot product of this vector and vector v1.booleanGVector.epsilonEquals(GVector v1, double epsilon) 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.booleanReturns true if all of the data members of GVector vector1 are equal to the corresponding data members in this GVector.final voidPlaces the values of the specified column into the vector parameter.final voidPlaces the values of the specified row into the vector parameter.final voidGVector.interpolate(GVector v1, double alpha) Linearly interpolates between this vector and vector v1 and places the result into this tuple: this = (1-alpha)*this + alpha*v1.final voidGVector.interpolate(GVector v1, float alpha) Deprecated.the double version of this method should be used.final voidGVector.interpolate(GVector v1, GVector v2, double alpha) Linearly interpolates between vectors v1 and v2 and places the result into this tuple: this = (1-alpha)*v1 + alpha*v2.final voidGVector.interpolate(GVector v1, GVector v2, float alpha) Deprecated.the double version of this method should be used.final intLU Decomposition; this matrix must be a square matrix; the LU GMatrix parameter must be the same size as this matrix.final voidGVector.LUDBackSolve(GMatrix LU, GVector b, GVector permutation) 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.final voidComputes the outer product of the two vectors; multiplies the the first vector by the transpose of the second vector and places the matrix result into this matrix.final voidMultiplies matrix m1 times Vector v1 and places the result into this vector (this = m1*v1).final voidMultiplies 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).final voidSets the value of this vector to the normalization of vector v1.final voidSets the value of this vector to the scalar multiplication of the scale factor with the vector v1.final voidSets the value of this vector to the scalar multiplication by s of vector v1 plus vector v2 (this = s*v1 + v2).final voidSets the value of this vector to the values found in vector vector.final voidCopy the values from the array into the specified column of this matrix.final voidCopy the values from the array into the specified row of this matrix.final voidSets the value of this vector to the vector difference of itself and vector (this = this - vector).final voidSets the value of this vector to the vector difference of vectors vector1 and vector2 (this = vector1 - vector2).final voidGVector.SVDBackSolve(GMatrix U, GMatrix W, GMatrix V, GVector b) 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.Constructors in javax.vecmath with parameters of type GVector