Uses of Class
toxi.geom.GVector
Packages that use GVector
-
Uses of GVector in toxi.geom
Modifier and TypeMethodDescriptionfinal GVector
Creates the vector sum of this vector and the given one (must be equal sized).final GVector
Sets the value of this vector to sum of itself and the specified vectorfinal 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 givenInterpolateStrategy
.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 givenInterpolateStrategy
.final GVector
GVector.scale
(double s) Scales this vector by the scale factor s and returns result as new vector.final GVector
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
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
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 tuplefinal GVector
GVector.set
(ReadonlyVec3D tuple) Sets the value of this vector to the values in tuplefinal GVector
GVector.set
(ReadonlyVec4D tuple) Sets the value of this vector to the values in tuplefinal 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
Creates the vector difference of this vector and the given one (must be equal sized).final GVector
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.Modifier and TypeMethodDescriptionfinal GVector
Creates the vector sum of this vector and the given one (must be equal sized).final GVector
Sets the value of this vector to sum of itself and the specified vectorfinal 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
Returns the dot product of this vector and vector v.boolean
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
Places the values of the specified column into the vector parameter.final void
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 givenInterpolateStrategy
.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 givenInterpolateStrategy
.final void
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
Multiplies matrix m1 times Vector v1 and places the result into this vector (this = m1*v1).final void
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
Scales the values of this vector with the values of the given vector vector (this = this * vector).final GVector
Scales the values of this vector with the values of the given vector vector (this = this * vector).final GVector
Sets the value of this vector to the values found in vector vector.final void
Copy the values from the vector into the specified column of this matrix.final void
Copy the values from the vector into the specified row of this matrix.final GVector
Creates the vector difference of this vector and the given one (must be equal sized).final GVector
Sets the value of this vector to the vector difference of itself and vector (this = this - vector).