|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use GVector | |
---|---|
javax.vecmath | Provides 3D vector mathematics classes. |
Uses of GVector in javax.vecmath |
---|
Methods in javax.vecmath with parameters of type GVector | |
---|---|
void |
GVector.add(GVector vector)
Sets the value of this vector to sum of itself and the specified vector |
void |
GVector.add(GVector vector1,
GVector vector2)
Sets the value of this vector to the vector sum of vectors vector1 and vector2. |
double |
GVector.angle(GVector v1)
Returns the (n-space) angle in radians between this vector and the vector parameter; the return value is constrained to the range [0,PI]. |
double |
GVector.dot(GVector v1)
Returns the dot product of this vector and vector v1. |
boolean |
GVector.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. |
boolean |
GVector.equals(GVector vector1)
Returns true if all of the data members of GVector vector1 are equal to the corresponding data members in this GVector. |
void |
GMatrix.getColumn(int col,
GVector vector)
Places the values of the specified column into the vector parameter. |
void |
GMatrix.getRow(int row,
GVector vector)
Places the values of the specified row into the vector parameter. |
void |
GVector.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. |
void |
GVector.interpolate(GVector v1,
float alpha)
Deprecated. Use interpolate(GVector, double) instead |
void |
GVector.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. |
void |
GVector.interpolate(GVector v1,
GVector v2,
float alpha)
Deprecated. Use interpolate(GVector, GVector, double) instead |
int |
GMatrix.LUD(GMatrix LU,
GVector permutation)
LU Decomposition: this matrix must be a square matrix and the LU GMatrix parameter must be the same size as this matrix. |
void |
GVector.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. |
void |
GVector.mul(GMatrix m1,
GVector v1)
Multiplies matrix m1 times Vector v1 and places the result into this vector (this = m1*v1). |
void |
GVector.mul(GVector v1,
GMatrix m1)
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). |
void |
GMatrix.mul(GVector v1,
GVector v2)
Computes 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. |
void |
GVector.normalize(GVector v1)
Sets the value of this vector to the normalization of vector v1. |
void |
GVector.scale(double s,
GVector v1)
Sets the value of this vector to the scalar multiplication of the scale factor with the vector v1. |
void |
GVector.scaleAdd(double s,
GVector v1,
GVector v2)
Sets the value of this vector to the scalar multiplication by s of vector v1 plus vector v2 (this = s*v1 + v2). |
void |
GVector.set(GVector vector)
Sets the value of this vector to the values found in vector vector. |
void |
GMatrix.setColumn(int col,
GVector vector)
Copy the values from the vector into the specified column of this matrix. |
void |
GMatrix.setRow(int row,
GVector vector)
Copy the values from the vector into the specified row of this matrix. |
void |
GVector.sub(GVector vector)
Sets the value of this vector to the vector difference of itself and vector (this = this - vector). |
void |
GVector.sub(GVector vector1,
GVector vector2)
Sets the value of this vector to the vector difference of vectors vector1 and vector2 (this = vector1 - vector2). |
void |
GVector.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 | |
---|---|
GVector(GVector vector)
Constructs a new GVector from the specified vector. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |