Space, Point
| Modifier and Type | Method and Description |
|---|---|
| public Vector | |
| public Vector | |
| public double | |
| public double | |
| public double | Returns: the distance between the instance and p according to the L∞ normsecond vector v)Compute the distance between the instance and another vector according to the L∞ norm. |
| public double | Returns: the square of the distance between the instance and psecond vector v)Compute the square of the distance between the instance and another vector. |
| public double | Returns: the dot product this.vsecond vector v)Compute the dot-product of the instance and another vector. |
| public double | |
| public double | |
| public double | |
| public double | Returns: square of the Euclidean norm for the vectorGet the square of the norm for the vector. |
| public Vector | Returns: null vector of the vectorial space or origin point of the affine spaceGet the null vector of the vectorial space or origin point of the affine space. |
| public boolean | Returns: true if any coordinate of this vector is infinite and none are NaN; false otherwiseReturns true if any coordinate of this vector is infinite and none are NaN; false otherwise |
| public Vector | |
| public Vector | |
| public Vector | |
| public Vector | |
| public Vector | |
| public String | Returns: a string representation of this vectorthe custom format for components format)Get a string representation of this vector. |
| add | back to summary |
|---|---|
| public Vector Add a vector to the instance. | |
| add | back to summary |
|---|---|
| public Vector Add a scaled vector to the instance. | |
| distance | back to summary |
|---|---|
| public double distance(Vector<S> v) Compute the distance between the instance and another vector according to the L2 norm. Calling this method is equivalent to calling:
| |
| distance1 | back to summary |
|---|---|
| public double distance1(Vector<S> v) Compute the distance between the instance and another vector according to the L1 norm. Calling this method is equivalent to calling:
| |
| distanceInf | back to summary |
|---|---|
| public double distanceInf(Vector<S> v) Compute the distance between the instance and another vector according to the L∞ norm. Calling this method is equivalent to calling:
| |
| distanceSq | back to summary |
|---|---|
| public double distanceSq(Vector<S> v) Compute the square of the distance between the instance and another vector. Calling this method is equivalent to calling:
| |
| dotProduct | back to summary |
|---|---|
| public double dotProduct(Vector<S> v) Compute the dot-product of the instance and another vector.
| |
| getNorm | back to summary |
|---|---|
| public double getNorm() Get the L2 norm for the vector.
| |
| getNorm1 | back to summary |
|---|---|
| public double getNorm1() Get the L1 norm for the vector.
| |
| getNormInf | back to summary |
|---|---|
| public double getNormInf() Get the L∞ norm for the vector.
| |
| getNormSq | back to summary |
|---|---|
| public double getNormSq() Get the square of the norm for the vector.
| |
| getZero | back to summary |
|---|---|
| public Vector Get the null vector of the vectorial space or origin point of the affine space.
| |
| isInfinite | back to summary |
|---|---|
| public boolean isInfinite() Returns true if any coordinate of this vector is infinite and none are NaN; false otherwise
| |
| negate | back to summary |
|---|---|
| public Vector Get the opposite of the instance.
| |
| normalize | back to summary |
|---|---|
| public Vector Get a normalized vector aligned with the instance.
| |
| scalarMultiply | back to summary |
|---|---|
| public Vector Multiply the instance by a scalar.
| |
| subtract | back to summary |
|---|---|
| public Vector Subtract a vector from the instance. | |
| subtract | back to summary |
|---|---|
| public Vector Subtract a scaled vector from the instance. | |
| toString | back to summary |
|---|---|
| public String toString(final NumberFormat format) Get a string representation of this vector.
| |