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 void
add(GVector vector)
void
add(GVector vector1, GVector vector2)
double
angle(GVector v1)
java.lang.Object
clone()
double
dot(GVector v1)
boolean
epsilonEquals(GVector v1, double epsilon)
boolean
equals(java.lang.Object o1)
boolean
equals(GVector vector1)
double
getElement(int index)
int
getSize()
int
hashCode()
void
interpolate(GVector v1, double alpha)
void
interpolate(GVector v1, float alpha)
void
interpolate(GVector v1, GVector v2, double alpha)
void
interpolate(GVector v1, GVector v2, float alpha)
void
LUDBackSolve(GMatrix LU, GVector b, GVector permutation)
void
mul(GMatrix m1, GVector v1)
void
mul(GVector v1, GMatrix m1)
void
negate()
double
norm()
void
normalize()
void
normalize(GVector v1)
double
normSquared()
void
scale(double s)
void
scale(double s, GVector v1)
void
scaleAdd(double s, GVector v1, GVector v2)
void
set(double[] vector)
void
set(GVector vector)
void
set(Tuple2f tuple)
void
set(Tuple3d tuple)
void
set(Tuple3f tuple)
void
set(Tuple4d tuple)
void
set(Tuple4f tuple)
void
setElement(int index, double value)
void
setSize(int length)
void
sub(GVector vector)
void
sub(GVector vector1, GVector vector2)
void
SVDBackSolve(GMatrix U, GMatrix W, GMatrix V, GVector b)
java.lang.String
toString()
void
zero()
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:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
-
equals
public boolean equals(java.lang.Object o1)- Overrides:
equals
in classjava.lang.Object
-
epsilonEquals
-
dot
-
SVDBackSolve
-
LUDBackSolve
-
angle
-
interpolate
-
interpolate
-
interpolate
-
interpolate
-
clone
public java.lang.Object clone()- Overrides:
clone
in classjava.lang.Object
-