Uses of Class
toxi.geom.GVector

Packages that use GVector
Package
Description
 
  • Uses of GVector in toxi.geom

    Methods in toxi.geom that return GVector
    Modifier and Type
    Method
    Description
    final GVector
    GVector.add(GVector v)
    Creates the vector sum of this vector and the given one (must be equal sized).
    final GVector
    GVector.addSelf(GVector vector)
    Sets the value of this vector to sum of itself and the specified vector
    final GVector
    GVector.interpolateTo(GVector v, double alpha)
    Linearly interpolates this vector to the target vector and places the result into a new instance: result = this + (target-this)*alpha.
    final GVector
    GVector.interpolateTo(GVector v, double alpha, InterpolateStrategy strategy)
    Interpolates the vector towards the given target vector, using the given InterpolateStrategy.
    final GVector
    GVector.interpolateToSelf(GVector v, double alpha)
    Linearly interpolates this vector to the target vector and places result in this vector.
    final GVector
    GVector.interpolateToSelf(GVector v, double alpha, InterpolateStrategy strategy)
    Interpolates the vector towards the given target vector, using the given InterpolateStrategy.
    final GVector
    GVector.scale(double s)
    Scales this vector by the scale factor s and returns result as new vector.
    final GVector
    GVector.scale(GVector v)
    Scales the values of this vector with the values of the given vector vector (this = this * vector).
    final GVector
    GVector.scaleSelf(double s)
    Scales this vector by the scale factor s.
    final GVector
    GVector.scaleSelf(GVector v)
    Scales the values of this vector with the values of the given vector vector (this = this * vector).
    final GVector
    GVector.set(double[] vector)
    Sets the values of this vector to the values found in the array parameter.
    final GVector
    GVector.set(GVector vector)
    Sets the value of this vector to the values found in vector vector.
    final GVector
    GVector.set(ReadonlyVec2D tuple)
    Sets the value of this vector to the values in tuple
    final GVector
    GVector.set(ReadonlyVec3D tuple)
    Sets the value of this vector to the values in tuple
    final GVector
    GVector.set(ReadonlyVec4D tuple)
    Sets the value of this vector to the values in tuple
    final GVector
    GVector.setElement(int index, double value)
    Modifies the value at the specified index of this vector.
    final GVector
    GVector.setSize(int length)
    Changes the size of this vector dynamically.
    final GVector
    GVector.sub(GVector v)
    Creates the vector difference of this vector and the given one (must be equal sized).
    final GVector
    GVector.subSelf(GVector vector)
    Sets the value of this vector to the vector difference of itself and vector (this = this - vector).
    final GVector
    GVector.zero()
    Sets all the values in this vector to zero.
    Methods in toxi.geom with parameters of type GVector
    Modifier and Type
    Method
    Description
    final GVector
    GVector.add(GVector v)
    Creates the vector sum of this vector and the given one (must be equal sized).
    final GVector
    GVector.addSelf(GVector vector)
    Sets the value of this vector to sum of itself and the specified vector
    final double
    GVector.angleBetween(GVector v)
    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 void
    GVector.backSolveLUD(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
    GVector.backSolveSVD(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.
    final int
    GMatrix.computeLUD(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.
    final double
    GVector.dot(GVector v)
    Returns the dot product of this vector and vector v.
    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.
    boolean
    GVector.equalsWithTolerance(GVector v, double tolerance)
    Returns true if the L-infinite distance between this vector and vector v is less than or equal to the tolerance parameter, otherwise returns false.
    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 GVector
    GVector.interpolateTo(GVector v, double alpha)
    Linearly interpolates this vector to the target vector and places the result into a new instance: result = this + (target-this)*alpha.
    final GVector
    GVector.interpolateTo(GVector v, double alpha, InterpolateStrategy strategy)
    Interpolates the vector towards the given target vector, using the given InterpolateStrategy.
    final GVector
    GVector.interpolateToSelf(GVector v, double alpha)
    Linearly interpolates this vector to the target vector and places result in this vector.
    final GVector
    GVector.interpolateToSelf(GVector v, double alpha, InterpolateStrategy strategy)
    Interpolates the vector towards the given target vector, using the given InterpolateStrategy.
    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 GVector
    GVector.scale(GVector v)
    Scales the values of this vector with the values of the given vector vector (this = this * vector).
    final GVector
    GVector.scaleSelf(GVector v)
    Scales the values of this vector with the values of the given vector vector (this = this * vector).
    final GVector
    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 vector into the specified column of this matrix.
    final void
    GMatrix.setRow(int row, GVector vector)
    Copy the values from the vector into the specified row of this matrix.
    final GVector
    GVector.sub(GVector v)
    Creates the vector difference of this vector and the given one (must be equal sized).
    final GVector
    GVector.subSelf(GVector vector)
    Sets the value of this vector to the vector difference of itself and vector (this = this - vector).
    Constructors in toxi.geom with parameters of type GVector
    Modifier
    Constructor
    Description
     
    GVector(GVector vector)
    Constructs a new GVector from the specified vector.