Modifier and Type | Method and Description |
---|---|
void |
DE(IVector u)
Divide-equals (/=) operation.
|
void |
E(double a)
Sets all components of this vector equal to the given value.
|
void |
E(double[] a)
Sets the components of this vector equal to the corresponding elements of
the given array.
|
void |
E(IVector u)
Sets the components of this vector equal to those of the given vector.
|
void |
Ea1Tv1(double a,
IVector v1)
Operation (= a1 * v1); sets the components of this to those of the given
vector multiplied by the given constant.
|
void |
Ev1Mv2(IVector v1,
IVector v2)
Sets the components of this vector equal to (v1 - v2)
|
void |
Ev1Pv2(IVector v1,
IVector v2)
Sets the components of this vector equal to (v1 + v2)
|
void |
map(IFunction f)
Applies the given function to each element of the vector.
|
void |
ME(IVector u)
Minus-equals (-=) operation.
|
void |
mod(IVector u)
Replaces each component of this vector with its value modulo
the corresponding component in u
|
void |
normalize()
Normalizes this vector, so this.squared() == 1.
|
void |
PE(double a)
Plus-equals (+=) operation, causing a constant value to be added to all
components of this vector.
|
void |
PE(IVector u)
Plus-equals (+=) operation.
|
void |
PEa1Tv1(double a,
IVector v1)
Increments (+=) components by (a1 * v1)
|
void |
setX(int i,
double d)
Sets the i-th component of the vector to the given value d.
|
void |
TE(double a)
Multiplies all components by a constant.
|
void |
TE(IVector u)
Times-equals (*=) operation.
|
void |
XE(IVector u)
Sets this vector equal to the cross product of this vector with the
given vector (only works for 3D vectors).
|
void setX(int i, double d)
void E(IVector u)
void E(double a)
void E(double[] a)
void PE(IVector u)
void PE(double a)
void ME(IVector u)
void TE(IVector u)
void DE(IVector u)
void TE(double a)
void Ea1Tv1(double a, IVector v1)
void PEa1Tv1(double a, IVector v1)
void mod(IVector u)
void normalize()
void map(IFunction f)
void XE(IVector u)