Package javax.vecmath
Class GVector
java.lang.Object
javax.vecmath.GVector
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class GVector
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidadd(GVector vector)voidadd(GVector vector1, GVector vector2)doubleangle(GVector v1)java.lang.Objectclone()doubledot(GVector v1)booleanepsilonEquals(GVector v1, double epsilon)booleanequals(java.lang.Object o1)booleanequals(GVector vector1)doublegetElement(int index)intgetSize()inthashCode()voidinterpolate(GVector v1, double alpha)voidinterpolate(GVector v1, float alpha)voidinterpolate(GVector v1, GVector v2, double alpha)voidinterpolate(GVector v1, GVector v2, float alpha)voidLUDBackSolve(GMatrix LU, GVector b, GVector permutation)voidmul(GMatrix m1, GVector v1)voidmul(GVector v1, GMatrix m1)voidnegate()doublenorm()voidnormalize()voidnormalize(GVector v1)doublenormSquared()voidscale(double s)voidscale(double s, GVector v1)voidscaleAdd(double s, GVector v1, GVector v2)voidset(double[] vector)voidset(GVector vector)voidset(Tuple2f tuple)voidset(Tuple3d tuple)voidset(Tuple3f tuple)voidset(Tuple4d tuple)voidset(Tuple4f tuple)voidsetElement(int index, double value)voidsetSize(int length)voidsub(GVector vector)voidsub(GVector vector1, GVector vector2)voidSVDBackSolve(GMatrix U, GMatrix W, GMatrix V, GVector b)java.lang.StringtoString()voidzero()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
GVector
public GVector(int length) -
GVector
public GVector(double[] vector) -
GVector
-
GVector
-
GVector
-
GVector
-
GVector
-
GVector
-
GVector
public GVector(double[] vector, int length)
-
-
Method Details
-
norm
public final double norm() -
normSquared
public final double normSquared() -
normalize
-
normalize
public final void normalize() -
scale
-
scale
public final void scale(double s) -
scaleAdd
-
add
-
add
-
sub
-
sub
-
mul
-
mul
-
negate
public final void negate() -
zero
public final void zero() -
setSize
public final void setSize(int length) -
set
public final void set(double[] vector) -
set
-
set
-
set
-
set
-
set
-
set
-
getSize
public final int getSize() -
getElement
public final double getElement(int index) -
setElement
public final void setElement(int index, double value) -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
-
equals
public boolean equals(java.lang.Object o1)- Overrides:
equalsin classjava.lang.Object
-
epsilonEquals
-
dot
-
SVDBackSolve
-
LUDBackSolve
-
angle
-
interpolate
-
interpolate
-
interpolate
-
interpolate
-
clone
public java.lang.Object clone()- Overrides:
clonein classjava.lang.Object
-