public interface VectorObject<T> extends Scannable, Clonable
scaleObj(), addObj() and scaledAddObj(), since
the corresponding scale(), add() and scaledAdd()
methods in the Vector and Matrix subclasses sometimes may
incompatitable return types (some return a reference to their object, while
others return void).| Modifier and Type | Method and Description |
|---|---|
void |
addObj(T v1)
Adds
v1 to this vector. |
boolean |
epsilonEquals(T v1,
double tol)
Returns true if the components of this vector are equal to those of
v1, within the tolerance tol. |
default boolean |
getThreeVectorValue(Vector3d vec)
Where possible, maps or projects this VectorObject onto a 3-vector.
|
void |
scaledAddObj(double s,
T v1)
Scales
v1 by s and adds it to this vector. |
void |
scaleObj(double s)
Scales this vector by
s. |
void |
set(T v1)
Sets this vector to
v1 |
void |
setZero()
Sets this vector to zero.
|
isWritable, scan, writevoid scaleObj(double s)
s.void addObj(T v1)
v1 to this vector.void scaledAddObj(double s,
T v1)
v1 by s and adds it to this vector.void set(T v1)
v1void setZero()
boolean epsilonEquals(T v1, double tol)
v1, within the tolerance tol. If tol = 0, then
exact equality is required.default boolean getThreeVectorValue(Vector3d vec)