org.apache.commons.math3.geometry.euclidean.threed
T
 the type of the field elementspublic class FieldVector3D<T extends RealFieldElement<T>> extends Object implements Serializable
Vector3D
using RealFieldElement
.
Instance of this class are guaranteed to be immutable.
Constructor and Description 

FieldVector3D(double a,
FieldVector3D<T> u)
Multiplicative constructor
Build a vector from another one and a scale factor.

FieldVector3D(double a1,
FieldVector3D<T> u1,
double a2,
FieldVector3D<T> u2)
Linear constructor
Build a vector from two other ones and corresponding scale factors.

FieldVector3D(double a1,
FieldVector3D<T> u1,
double a2,
FieldVector3D<T> u2,
double a3,
FieldVector3D<T> u3)
Linear constructor
Build a vector from three other ones and corresponding scale factors.

FieldVector3D(double a1,
FieldVector3D<T> u1,
double a2,
FieldVector3D<T> u2,
double a3,
FieldVector3D<T> u3,
double a4,
FieldVector3D<T> u4)
Linear constructor
Build a vector from four other ones and corresponding scale factors.

FieldVector3D(T[] v)
Simple constructor.

FieldVector3D(T a,
FieldVector3D<T> u)
Multiplicative constructor
Build a vector from another one and a scale factor.

FieldVector3D(T a1,
FieldVector3D<T> u1,
T a2,
FieldVector3D<T> u2)
Linear constructor
Build a vector from two other ones and corresponding scale factors.

FieldVector3D(T a1,
FieldVector3D<T> u1,
T a2,
FieldVector3D<T> u2,
T a3,
FieldVector3D<T> u3)
Linear constructor
Build a vector from three other ones and corresponding scale factors.

FieldVector3D(T a1,
FieldVector3D<T> u1,
T a2,
FieldVector3D<T> u2,
T a3,
FieldVector3D<T> u3,
T a4,
FieldVector3D<T> u4)
Linear constructor
Build a vector from four other ones and corresponding scale factors.

FieldVector3D(T alpha,
T delta)
Simple constructor.

FieldVector3D(T x,
T y,
T z)
Simple constructor.

FieldVector3D(T a,
Vector3D u)
Multiplicative constructor
Build a vector from another one and a scale factor.

FieldVector3D(T a1,
Vector3D u1,
T a2,
Vector3D u2)
Linear constructor
Build a vector from two other ones and corresponding scale factors.

FieldVector3D(T a1,
Vector3D u1,
T a2,
Vector3D u2,
T a3,
Vector3D u3)
Linear constructor
Build a vector from three other ones and corresponding scale factors.

FieldVector3D(T a1,
Vector3D u1,
T a2,
Vector3D u2,
T a3,
Vector3D u3,
T a4,
Vector3D u4)
Linear constructor
Build a vector from four other ones and corresponding scale factors.

Modifier and Type  Method and Description 

FieldVector3D<T> 
add(double factor,
FieldVector3D<T> v)
Add a scaled vector to the instance.

FieldVector3D<T> 
add(double factor,
Vector3D v)
Add a scaled vector to the instance.

FieldVector3D<T> 
add(FieldVector3D<T> v)
Add a vector to the instance.

FieldVector3D<T> 
add(T factor,
FieldVector3D<T> v)
Add a scaled vector to the instance.

FieldVector3D<T> 
add(T factor,
Vector3D v)
Add a scaled vector to the instance.

FieldVector3D<T> 
add(Vector3D v)
Add a vector to the instance.

static <T extends RealFieldElement<T>> 
angle(FieldVector3D<T> v1,
FieldVector3D<T> v2)
Compute the angular separation between two vectors.

static <T extends RealFieldElement<T>> 
angle(FieldVector3D<T> v1,
Vector3D v2)
Compute the angular separation between two vectors.

static <T extends RealFieldElement<T>> 
angle(Vector3D v1,
FieldVector3D<T> v2)
Compute the angular separation between two vectors.

FieldVector3D<T> 
crossProduct(FieldVector3D<T> v)
Compute the crossproduct of the instance with another vector.

static <T extends RealFieldElement<T>> 
crossProduct(FieldVector3D<T> v1,
FieldVector3D<T> v2)
Compute the crossproduct of two vectors.

static <T extends RealFieldElement<T>> 
crossProduct(FieldVector3D<T> v1,
Vector3D v2)
Compute the crossproduct of two vectors.

FieldVector3D<T> 
crossProduct(Vector3D v)
Compute the crossproduct of the instance with another vector.

static <T extends RealFieldElement<T>> 
crossProduct(Vector3D v1,
FieldVector3D<T> v2)
Compute the crossproduct of two vectors.

T 
distance(FieldVector3D<T> v)
Compute the distance between the instance and another vector according to the L_{2} norm.

static <T extends RealFieldElement<T>> 
distance(FieldVector3D<T> v1,
FieldVector3D<T> v2)
Compute the distance between two vectors according to the L_{2} norm.

static <T extends RealFieldElement<T>> 
distance(FieldVector3D<T> v1,
Vector3D v2)
Compute the distance between two vectors according to the L_{2} norm.

T 
distance(Vector3D v)
Compute the distance between the instance and another vector according to the L_{2} norm.

static <T extends RealFieldElement<T>> 
distance(Vector3D v1,
FieldVector3D<T> v2)
Compute the distance between two vectors according to the L_{2} norm.

T 
distance1(FieldVector3D<T> v)
Compute the distance between the instance and another vector according to the L_{1} norm.

static <T extends RealFieldElement<T>> 
distance1(FieldVector3D<T> v1,
FieldVector3D<T> v2)
Compute the distance between two vectors according to the L_{1} norm.

static <T extends RealFieldElement<T>> 
distance1(FieldVector3D<T> v1,
Vector3D v2)
Compute the distance between two vectors according to the L_{1} norm.

T 
distance1(Vector3D v)
Compute the distance between the instance and another vector according to the L_{1} norm.

static <T extends RealFieldElement<T>> 
distance1(Vector3D v1,
FieldVector3D<T> v2)
Compute the distance between two vectors according to the L_{1} norm.

T 
distanceInf(FieldVector3D<T> v)
Compute the distance between the instance and another vector according to the L_{∞} norm.

static <T extends RealFieldElement<T>> 
distanceInf(FieldVector3D<T> v1,
FieldVector3D<T> v2)
Compute the distance between two vectors according to the L_{∞} norm.

static <T extends RealFieldElement<T>> 
distanceInf(FieldVector3D<T> v1,
Vector3D v2)
Compute the distance between two vectors according to the L_{∞} norm.

T 
distanceInf(Vector3D v)
Compute the distance between the instance and another vector according to the L_{∞} norm.

static <T extends RealFieldElement<T>> 
distanceInf(Vector3D v1,
FieldVector3D<T> v2)
Compute the distance between two vectors according to the L_{∞} norm.

T 
distanceSq(FieldVector3D<T> v)
Compute the square of the distance between the instance and another vector.

static <T extends RealFieldElement<T>> 
distanceSq(FieldVector3D<T> v1,
FieldVector3D<T> v2)
Compute the square of the distance between two vectors.

static <T extends RealFieldElement<T>> 
distanceSq(FieldVector3D<T> v1,
Vector3D v2)
Compute the square of the distance between two vectors.

T 
distanceSq(Vector3D v)
Compute the square of the distance between the instance and another vector.

static <T extends RealFieldElement<T>> 
distanceSq(Vector3D v1,
FieldVector3D<T> v2)
Compute the square of the distance between two vectors.

T 
dotProduct(FieldVector3D<T> v)
Compute the dotproduct of the instance and another vector.

static <T extends RealFieldElement<T>> 
dotProduct(FieldVector3D<T> v1,
FieldVector3D<T> v2)
Compute the dotproduct of two vectors.

static <T extends RealFieldElement<T>> 
dotProduct(FieldVector3D<T> v1,
Vector3D v2)
Compute the dotproduct of two vectors.

T 
dotProduct(Vector3D v)
Compute the dotproduct of the instance and another vector.

static <T extends RealFieldElement<T>> 
dotProduct(Vector3D v1,
FieldVector3D<T> v2)
Compute the dotproduct of two vectors.

boolean 
equals(Object other)
Test for the equality of two 3D vectors.

T 
getAlpha()
Get the azimuth of the vector.

T 
getDelta()
Get the elevation of the vector.

T 
getNorm()
Get the L_{2} norm for the vector.

T 
getNorm1()
Get the L_{1} norm for the vector.

T 
getNormInf()
Get the L_{∞} norm for the vector.

T 
getNormSq()
Get the square of the norm for the vector.

T 
getX()
Get the abscissa of the vector.

T 
getY()
Get the ordinate of the vector.

T 
getZ()
Get the height of the vector.

int 
hashCode()
Get a hashCode for the 3D vector.

boolean 
isInfinite()
Returns true if any coordinate of this vector is infinite and none are NaN;
false otherwise

boolean 
isNaN()
Returns true if any coordinate of this vector is NaN; false otherwise

FieldVector3D<T> 
negate()
Get the opposite of the instance.

FieldVector3D<T> 
normalize()
Get a normalized vector aligned with the instance.

FieldVector3D<T> 
orthogonal()
Get a vector orthogonal to the instance.

FieldVector3D<T> 
scalarMultiply(double a)
Multiply the instance by a scalar.

FieldVector3D<T> 
scalarMultiply(T a)
Multiply the instance by a scalar.

FieldVector3D<T> 
subtract(double factor,
FieldVector3D<T> v)
Subtract a scaled vector from the instance.

FieldVector3D<T> 
subtract(double factor,
Vector3D v)
Subtract a scaled vector from the instance.

FieldVector3D<T> 
subtract(FieldVector3D<T> v)
Subtract a vector from the instance.

FieldVector3D<T> 
subtract(T factor,
FieldVector3D<T> v)
Subtract a scaled vector from the instance.

FieldVector3D<T> 
subtract(T factor,
Vector3D v)
Subtract a scaled vector from the instance.

FieldVector3D<T> 
subtract(Vector3D v)
Subtract a vector from the instance.

T[] 
toArray()
Get the vector coordinates as a dimension 3 array.

String 
toString()
Get a string representation of this vector.

String 
toString(NumberFormat format)
Get a string representation of this vector.

Vector3D 
toVector3D()
Convert to a constant vector without derivatives.

public FieldVector3D(T x, T y, T z)
public FieldVector3D(T[] v) throws DimensionMismatchException
v
 coordinates arrayDimensionMismatchException
 if array does not have 3 elementstoArray()
public FieldVector3D(T alpha, T delta)
alpha
 azimuth (α) around Z
(0 is +X, π/2 is +Y, π is X and 3π/2 is Y)delta
 elevation (δ) above (XY) plane, from π/2 to +π/2getAlpha()
,
getDelta()
public FieldVector3D(T a, FieldVector3D<T> u)
a
 scale factoru
 base (unscaled) vectorpublic FieldVector3D(T a, Vector3D u)
a
 scale factoru
 base (unscaled) vectorpublic FieldVector3D(double a, FieldVector3D<T> u)
a
 scale factoru
 base (unscaled) vectorpublic FieldVector3D(T a1, FieldVector3D<T> u1, T a2, FieldVector3D<T> u2)
a1
 first scale factoru1
 first base (unscaled) vectora2
 second scale factoru2
 second base (unscaled) vectorpublic FieldVector3D(T a1, Vector3D u1, T a2, Vector3D u2)
a1
 first scale factoru1
 first base (unscaled) vectora2
 second scale factoru2
 second base (unscaled) vectorpublic FieldVector3D(double a1, FieldVector3D<T> u1, double a2, FieldVector3D<T> u2)
a1
 first scale factoru1
 first base (unscaled) vectora2
 second scale factoru2
 second base (unscaled) vectorpublic FieldVector3D(T a1, FieldVector3D<T> u1, T a2, FieldVector3D<T> u2, T a3, FieldVector3D<T> u3)
a1
 first scale factoru1
 first base (unscaled) vectora2
 second scale factoru2
 second base (unscaled) vectora3
 third scale factoru3
 third base (unscaled) vectorpublic FieldVector3D(T a1, Vector3D u1, T a2, Vector3D u2, T a3, Vector3D u3)
a1
 first scale factoru1
 first base (unscaled) vectora2
 second scale factoru2
 second base (unscaled) vectora3
 third scale factoru3
 third base (unscaled) vectorpublic FieldVector3D(double a1, FieldVector3D<T> u1, double a2, FieldVector3D<T> u2, double a3, FieldVector3D<T> u3)
a1
 first scale factoru1
 first base (unscaled) vectora2
 second scale factoru2
 second base (unscaled) vectora3
 third scale factoru3
 third base (unscaled) vectorpublic FieldVector3D(T a1, FieldVector3D<T> u1, T a2, FieldVector3D<T> u2, T a3, FieldVector3D<T> u3, T a4, FieldVector3D<T> u4)
a1
 first scale factoru1
 first base (unscaled) vectora2
 second scale factoru2
 second base (unscaled) vectora3
 third scale factoru3
 third base (unscaled) vectora4
 fourth scale factoru4
 fourth base (unscaled) vectorpublic FieldVector3D(T a1, Vector3D u1, T a2, Vector3D u2, T a3, Vector3D u3, T a4, Vector3D u4)
a1
 first scale factoru1
 first base (unscaled) vectora2
 second scale factoru2
 second base (unscaled) vectora3
 third scale factoru3
 third base (unscaled) vectora4
 fourth scale factoru4
 fourth base (unscaled) vectorpublic FieldVector3D(double a1, FieldVector3D<T> u1, double a2, FieldVector3D<T> u2, double a3, FieldVector3D<T> u3, double a4, FieldVector3D<T> u4)
a1
 first scale factoru1
 first base (unscaled) vectora2
 second scale factoru2
 second base (unscaled) vectora3
 third scale factoru3
 third base (unscaled) vectora4
 fourth scale factoru4
 fourth base (unscaled) vectorpublic T getX()
FieldVector3D(RealFieldElement, RealFieldElement, RealFieldElement)
public T getY()
FieldVector3D(RealFieldElement, RealFieldElement, RealFieldElement)
public T getZ()
FieldVector3D(RealFieldElement, RealFieldElement, RealFieldElement)
public T[] toArray()
FieldVector3D(RealFieldElement[])
public Vector3D toVector3D()
public T getNormSq()
public T getNormInf()
public T getAlpha()
FieldVector3D(RealFieldElement, RealFieldElement)
public T getDelta()
FieldVector3D(RealFieldElement, RealFieldElement)
public FieldVector3D<T> add(FieldVector3D<T> v)
v
 vector to addpublic FieldVector3D<T> add(Vector3D v)
v
 vector to addpublic FieldVector3D<T> add(T factor, FieldVector3D<T> v)
factor
 scale factor to apply to v before adding itv
 vector to addpublic FieldVector3D<T> add(T factor, Vector3D v)
factor
 scale factor to apply to v before adding itv
 vector to addpublic FieldVector3D<T> add(double factor, FieldVector3D<T> v)
factor
 scale factor to apply to v before adding itv
 vector to addpublic FieldVector3D<T> add(double factor, Vector3D v)
factor
 scale factor to apply to v before adding itv
 vector to addpublic FieldVector3D<T> subtract(FieldVector3D<T> v)
v
 vector to subtractpublic FieldVector3D<T> subtract(Vector3D v)
v
 vector to subtractpublic FieldVector3D<T> subtract(T factor, FieldVector3D<T> v)
factor
 scale factor to apply to v before subtracting itv
 vector to subtractpublic FieldVector3D<T> subtract(T factor, Vector3D v)
factor
 scale factor to apply to v before subtracting itv
 vector to subtractpublic FieldVector3D<T> subtract(double factor, FieldVector3D<T> v)
factor
 scale factor to apply to v before subtracting itv
 vector to subtractpublic FieldVector3D<T> subtract(double factor, Vector3D v)
factor
 scale factor to apply to v before subtracting itv
 vector to subtractpublic FieldVector3D<T> normalize() throws MathArithmeticException
MathArithmeticException
 if the norm is zeropublic FieldVector3D<T> orthogonal() throws MathArithmeticException
There are an infinite number of normalized vectors orthogonal to the instance. This method picks up one of them almost arbitrarily. It is useful when one needs to compute a reference frame with one of the axes in a predefined direction. The following example shows how to build a frame having the k axis aligned with the known vector u :
Vector3D k = u.normalize();
Vector3D i = k.orthogonal();
Vector3D j = Vector3D.crossProduct(k, i);
MathArithmeticException
 if the norm of the instance is nullpublic static <T extends RealFieldElement<T>> T angle(FieldVector3D<T> v1, FieldVector3D<T> v2) throws MathArithmeticException
This method computes the angular separation between two vectors using the dot product for well separated vectors and the cross product for almost aligned vectors. This allows to have a good accuracy in all cases, even for vectors very close to each other.
T
 the type of the field elementsv1
 first vectorv2
 second vectorMathArithmeticException
 if either vector has a null normpublic static <T extends RealFieldElement<T>> T angle(FieldVector3D<T> v1, Vector3D v2) throws MathArithmeticException
This method computes the angular separation between two vectors using the dot product for well separated vectors and the cross product for almost aligned vectors. This allows to have a good accuracy in all cases, even for vectors very close to each other.
T
 the type of the field elementsv1
 first vectorv2
 second vectorMathArithmeticException
 if either vector has a null normpublic static <T extends RealFieldElement<T>> T angle(Vector3D v1, FieldVector3D<T> v2) throws MathArithmeticException
This method computes the angular separation between two vectors using the dot product for well separated vectors and the cross product for almost aligned vectors. This allows to have a good accuracy in all cases, even for vectors very close to each other.
T
 the type of the field elementsv1
 first vectorv2
 second vectorMathArithmeticException
 if either vector has a null normpublic FieldVector3D<T> negate()
public FieldVector3D<T> scalarMultiply(T a)
a
 scalarpublic FieldVector3D<T> scalarMultiply(double a)
a
 scalarpublic boolean isNaN()
public boolean isInfinite()
public boolean equals(Object other)
If all coordinates of two 3D vectors are exactly the same, and none of their
real part
are NaN
, the
two 3D vectors are considered to be equal.
NaN
coordinates are considered to affect globally the vector
and be equals to each other  i.e, if either (or all) real part of the
coordinates of the 3D vector are NaN
, the 3D vector is NaN
.
public int hashCode()
All NaN values have the same hash code.
public T dotProduct(FieldVector3D<T> v)
The implementation uses specific multiplication and addition algorithms to preserve accuracy and reduce cancellation effects. It should be very accurate even for nearly orthogonal vectors.
v
 second vectorMathArrays.linearCombination(double, double, double, double, double, double)
public T dotProduct(Vector3D v)
The implementation uses specific multiplication and addition algorithms to preserve accuracy and reduce cancellation effects. It should be very accurate even for nearly orthogonal vectors.
v
 second vectorMathArrays.linearCombination(double, double, double, double, double, double)
public FieldVector3D<T> crossProduct(FieldVector3D<T> v)
v
 other vectorpublic FieldVector3D<T> crossProduct(Vector3D v)
v
 other vectorpublic T distance1(FieldVector3D<T> v)
Calling this method is equivalent to calling:
q.subtract(p).getNorm1()
except that no intermediate
vector is built
v
 second vectorpublic T distance1(Vector3D v)
Calling this method is equivalent to calling:
q.subtract(p).getNorm1()
except that no intermediate
vector is built
v
 second vectorpublic T distance(FieldVector3D<T> v)
Calling this method is equivalent to calling:
q.subtract(p).getNorm()
except that no intermediate
vector is built
v
 second vectorpublic T distance(Vector3D v)
Calling this method is equivalent to calling:
q.subtract(p).getNorm()
except that no intermediate
vector is built
v
 second vectorpublic T distanceInf(FieldVector3D<T> v)
Calling this method is equivalent to calling:
q.subtract(p).getNormInf()
except that no intermediate
vector is built
v
 second vectorpublic T distanceInf(Vector3D v)
Calling this method is equivalent to calling:
q.subtract(p).getNormInf()
except that no intermediate
vector is built
v
 second vectorpublic T distanceSq(FieldVector3D<T> v)
Calling this method is equivalent to calling:
q.subtract(p).getNormSq()
except that no intermediate
vector is built
v
 second vectorpublic T distanceSq(Vector3D v)
Calling this method is equivalent to calling:
q.subtract(p).getNormSq()
except that no intermediate
vector is built
v
 second vectorpublic static <T extends RealFieldElement<T>> T dotProduct(FieldVector3D<T> v1, FieldVector3D<T> v2)
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T dotProduct(FieldVector3D<T> v1, Vector3D v2)
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T dotProduct(Vector3D v1, FieldVector3D<T> v2)
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> FieldVector3D<T> crossProduct(FieldVector3D<T> v1, FieldVector3D<T> v2)
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> FieldVector3D<T> crossProduct(FieldVector3D<T> v1, Vector3D v2)
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> FieldVector3D<T> crossProduct(Vector3D v1, FieldVector3D<T> v2)
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T distance1(FieldVector3D<T> v1, FieldVector3D<T> v2)
Calling this method is equivalent to calling:
v1.subtract(v2).getNorm1()
except that no intermediate
vector is built
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T distance1(FieldVector3D<T> v1, Vector3D v2)
Calling this method is equivalent to calling:
v1.subtract(v2).getNorm1()
except that no intermediate
vector is built
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T distance1(Vector3D v1, FieldVector3D<T> v2)
Calling this method is equivalent to calling:
v1.subtract(v2).getNorm1()
except that no intermediate
vector is built
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T distance(FieldVector3D<T> v1, FieldVector3D<T> v2)
Calling this method is equivalent to calling:
v1.subtract(v2).getNorm()
except that no intermediate
vector is built
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T distance(FieldVector3D<T> v1, Vector3D v2)
Calling this method is equivalent to calling:
v1.subtract(v2).getNorm()
except that no intermediate
vector is built
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T distance(Vector3D v1, FieldVector3D<T> v2)
Calling this method is equivalent to calling:
v1.subtract(v2).getNorm()
except that no intermediate
vector is built
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T distanceInf(FieldVector3D<T> v1, FieldVector3D<T> v2)
Calling this method is equivalent to calling:
v1.subtract(v2).getNormInf()
except that no intermediate
vector is built
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T distanceInf(FieldVector3D<T> v1, Vector3D v2)
Calling this method is equivalent to calling:
v1.subtract(v2).getNormInf()
except that no intermediate
vector is built
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T distanceInf(Vector3D v1, FieldVector3D<T> v2)
Calling this method is equivalent to calling:
v1.subtract(v2).getNormInf()
except that no intermediate
vector is built
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T distanceSq(FieldVector3D<T> v1, FieldVector3D<T> v2)
Calling this method is equivalent to calling:
v1.subtract(v2).getNormSq()
except that no intermediate
vector is built
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T distanceSq(FieldVector3D<T> v1, Vector3D v2)
Calling this method is equivalent to calling:
v1.subtract(v2).getNormSq()
except that no intermediate
vector is built
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic static <T extends RealFieldElement<T>> T distanceSq(Vector3D v1, FieldVector3D<T> v2)
Calling this method is equivalent to calling:
v1.subtract(v2).getNormSq()
except that no intermediate
vector is built
T
 the type of the field elementsv1
 first vectorv2
 second vectorpublic String toString(NumberFormat format)
format
 the custom format for componentsCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.