Uses of Class
javax.vecmath.GVector

Packages that use GVector
Package
Description
 
  • Uses of GVector in javax.vecmath

    Methods in javax.vecmath with parameters of type GVector
    Modifier and Type
    Method
    Description
    final void
    GVector.add(GVector vector)
    Sets the value of this vector to sum of itself and the specified vector
    final void
    GVector.add(GVector vector1, GVector vector2)
    Sets the value of this vector to the vector sum of vectors vector1 and vector2.
    final 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].
    final 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.
    final void
    GMatrix.getColumn(int col, GVector vector)
    Places the values of the specified column into the vector parameter.
    final void
    GMatrix.getRow(int row, GVector vector)
    Places the values of the specified row into the vector parameter.
    final 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.
    final void
    GVector.interpolate(GVector v1, float alpha)
    Deprecated.
    the double version of this method should be used.
    final 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.
    final void
    GVector.interpolate(GVector v1, GVector v2, float alpha)
    Deprecated.
    the double version of this method should be used.
    final int
    GMatrix.LUD(GMatrix LU, GVector permutation)
    LU Decomposition; this matrix must be a square matrix; the LU GMatrix parameter must be the same size as this matrix.
    final 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.
    final 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.
    final void
    GVector.mul(GMatrix m1, GVector v1)
    Multiplies matrix m1 times Vector v1 and places the result into this vector (this = m1*v1).
    final 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).
    final void
    GVector.normalize(GVector v1)
    Sets the value of this vector to the normalization of vector v1.
    final 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.
    final 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).
    final void
    GVector.set(GVector vector)
    Sets the value of this vector to the values found in vector vector.
    final void
    GMatrix.setColumn(int col, GVector vector)
    Copy the values from the array into the specified column of this matrix.
    final void
    GMatrix.setRow(int row, GVector vector)
    Copy the values from the array into the specified row of this matrix.
    final void
    GVector.sub(GVector vector)
    Sets the value of this vector to the vector difference of itself and vector (this = this - vector).
    final 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).
    final 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
    Modifier
    Constructor
    Description
     
    GVector(GVector vector)
    Constructs a new GVector and copies the initial values from the parameter vector.