Vector3D using RealFieldElement.
Instance of this class are guaranteed to be immutable.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Serializable version identifier. |
| private final T | x
Abscissa. |
| private final T | y
Ordinate. |
| private final T | z
Height. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | FieldVector3D(final T
azimuth (α) around Z
(0 is +X, π/2 is +Y, π is -X and 3π/2 is -Y) alpha, final T elevation (δ) above (XY) plane, from -π/2 to +π/2 delta)Simple constructor. |
| public | FieldVector3D(final T
scale factor a, final FieldVector3D<T> base (unscaled) vector u)Multiplicative constructor Build a vector from another one and a scale factor. |
| public | FieldVector3D(final T
scale factor a, final Vector3D base (unscaled) vector u)Multiplicative constructor Build a vector from another one and a scale factor. |
| public | FieldVector3D(final double
scale factor a, final FieldVector3D<T> base (unscaled) vector u)Multiplicative constructor Build a vector from another one and a scale factor. |
| public | FieldVector3D(final T
first scale factor a1, final FieldVector3D<T> first base (unscaled) vector u1, final T second scale factor a2, final FieldVector3D<T> second base (unscaled) vector u2)Linear constructor Build a vector from two other ones and corresponding scale factors. |
| public | FieldVector3D(final T
first scale factor a1, final Vector3D first base (unscaled) vector u1, final T second scale factor a2, final Vector3D second base (unscaled) vector u2)Linear constructor Build a vector from two other ones and corresponding scale factors. |
| public | FieldVector3D(final double
first scale factor a1, final FieldVector3D<T> first base (unscaled) vector u1, final double second scale factor a2, final FieldVector3D<T> second base (unscaled) vector u2)Linear constructor Build a vector from two other ones and corresponding scale factors. |
| public | FieldVector3D(final T
first scale factor a1, final FieldVector3D<T> first base (unscaled) vector u1, final T second scale factor a2, final FieldVector3D<T> second base (unscaled) vector u2, final T third scale factor a3, final FieldVector3D<T> third base (unscaled) vector u3)Linear constructor Build a vector from three other ones and corresponding scale factors. |
| public | FieldVector3D(final T
first scale factor a1, final Vector3D first base (unscaled) vector u1, final T second scale factor a2, final Vector3D second base (unscaled) vector u2, final T third scale factor a3, final Vector3D third base (unscaled) vector u3)Linear constructor Build a vector from three other ones and corresponding scale factors. |
| public | FieldVector3D(final double
first scale factor a1, final FieldVector3D<T> first base (unscaled) vector u1, final double second scale factor a2, final FieldVector3D<T> second base (unscaled) vector u2, final double third scale factor a3, final FieldVector3D<T> third base (unscaled) vector u3)Linear constructor Build a vector from three other ones and corresponding scale factors. |
| public | FieldVector3D(final T
first scale factor a1, final FieldVector3D<T> first base (unscaled) vector u1, final T second scale factor a2, final FieldVector3D<T> second base (unscaled) vector u2, final T third scale factor a3, final FieldVector3D<T> third base (unscaled) vector u3, final T fourth scale factor a4, final FieldVector3D<T> fourth base (unscaled) vector u4)Linear constructor Build a vector from four other ones and corresponding scale factors. |
| public | FieldVector3D(final T
first scale factor a1, final Vector3D first base (unscaled) vector u1, final T second scale factor a2, final Vector3D second base (unscaled) vector u2, final T third scale factor a3, final Vector3D third base (unscaled) vector u3, final T fourth scale factor a4, final Vector3D fourth base (unscaled) vector u4)Linear constructor Build a vector from four other ones and corresponding scale factors. |
| public | FieldVector3D(final double
first scale factor a1, final FieldVector3D<T> first base (unscaled) vector u1, final double second scale factor a2, final FieldVector3D<T> second base (unscaled) vector u2, final double third scale factor a3, final FieldVector3D<T> third base (unscaled) vector u3, final double fourth scale factor a4, final FieldVector3D<T> fourth base (unscaled) vector u4)Linear constructor Build a vector from four other ones and corresponding scale factors. |
| Modifier and Type | Method and Description |
|---|---|
| public FieldVector3D | |
| public FieldVector3D | |
| public FieldVector3D | Returns: a new vectorscale factor to apply to v before adding it factor, final FieldVector3D<T> vector to add v)Add a scaled vector to the instance. |
| public FieldVector3D | |
| public FieldVector3D | Returns: a new vectorscale factor to apply to v before adding it factor, final FieldVector3D<T> vector to add v)Add a scaled vector to the instance. |
| public FieldVector3D | |
| public static < the type of the field elements T extends RealFieldElement | Returns: angular separation between v1 and v2first vector v1, final FieldVector3D<T> second vector v2)Compute the angular separation between two vectors. |
| public static < the type of the field elements T extends RealFieldElement | Returns: angular separation between v1 and v2first vector v1, final Vector3D second vector v2)Compute the angular separation between two vectors. |
| public static < the type of the field elements T extends RealFieldElement | Returns: angular separation between v1 and v2first vector v1, final FieldVector3D<T> second vector v2)Compute the angular separation between two vectors. |
| public FieldVector3D | Returns: the cross product this ^ v as a new Vector3Dother vector v)Compute the cross-product of the instance with another vector. |
| public FieldVector3D | Returns: the cross product this ^ v as a new Vector3Dother vector v)Compute the cross-product of the instance with another vector. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the cross product v1 ^ v2 as a new Vectorfirst vector v1, final FieldVector3D<T> second vector v2)Compute the cross-product of two vectors. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the cross product v1 ^ v2 as a new Vectorfirst vector v1, final Vector3D second vector v2)Compute the cross-product of two vectors. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the cross product v1 ^ v2 as a new Vectorfirst vector v1, final FieldVector3D<T> second vector v2)Compute the cross-product of two vectors. |
| public T | Returns: the distance between the instance and p according to the L2 normsecond vector v)Compute the distance between the instance and another vector according to the L2 norm. |
| public T | |
| public static < the type of the field elements T extends RealFieldElement | Returns: the distance between v1 and v2 according to the L2 normfirst vector v1, final FieldVector3D<T> second vector v2)Compute the distance between two vectors according to the L2 norm. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the distance between v1 and v2 according to the L2 normfirst vector v1, final Vector3D second vector v2)Compute the distance between two vectors according to the L2 norm. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the distance between v1 and v2 according to the L2 normfirst vector v1, final FieldVector3D<T> second vector v2)Compute the distance between two vectors according to the L2 norm. |
| public T | Returns: the distance between the instance and p according to the L1 normsecond vector v)Compute the distance between the instance and another vector according to the L1 norm. |
| public T | |
| public static < the type of the field elements T extends RealFieldElement | Returns: the distance between v1 and v2 according to the L1 normfirst vector v1, final FieldVector3D<T> second vector v2)Compute the distance between two vectors according to the L1 norm. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the distance between v1 and v2 according to the L1 normfirst vector v1, final Vector3D second vector v2)Compute the distance between two vectors according to the L1 norm. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the distance between v1 and v2 according to the L1 normfirst vector v1, final FieldVector3D<T> second vector v2)Compute the distance between two vectors according to the L1 norm. |
| public T | 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 T | 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 static < the type of the field elements T extends RealFieldElement | Returns: the distance between v1 and v2 according to the L∞ normfirst vector v1, final FieldVector3D<T> second vector v2)Compute the distance between two vectors according to the L∞ norm. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the distance between v1 and v2 according to the L∞ normfirst vector v1, final Vector3D second vector v2)Compute the distance between two vectors according to the L∞ norm. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the distance between v1 and v2 according to the L∞ normfirst vector v1, final FieldVector3D<T> second vector v2)Compute the distance between two vectors according to the L∞ norm. |
| public T | 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 T | 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 static < the type of the field elements T extends RealFieldElement | Returns: the square of the distance between v1 and v2first vector v1, final FieldVector3D<T> second vector v2)Compute the square of the distance between two vectors. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the square of the distance between v1 and v2first vector v1, final Vector3D second vector v2)Compute the square of the distance between two vectors. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the square of the distance between v1 and v2first vector v1, final FieldVector3D<T> second vector v2)Compute the square of the distance between two vectors. |
| public T | Returns: the dot product this.vsecond vector v)Compute the dot-product of the instance and another vector. |
| public T | Returns: the dot product this.vsecond vector v)Compute the dot-product of the instance and another vector. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the dot product v1.v2first vector v1, final FieldVector3D<T> second vector v2)Compute the dot-product of two vectors. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the dot product v1.v2first vector v1, final Vector3D second vector v2)Compute the dot-product of two vectors. |
| public static < the type of the field elements T extends RealFieldElement | Returns: the dot product v1.v2first vector v1, final FieldVector3D<T> second vector v2)Compute the dot-product of two vectors. |
| public boolean | Returns: true if two 3D vector objects are equal, false if object is null, not an instance of Vector3D, or not equal to this Vector3D instanceObject to test for equality to this other)Overrides java. Test for the equality of two 3D vectors. |
| public T | |
| public T | Returns: elevation (δ) of the vector, between -π/2 and +π/2Get the elevation of the vector. |
| public T | |
| public T | |
| public T | |
| public T | Returns: square of the Euclidean norm for the vectorGet the square of the norm for the vector. |
| public T | |
| public T | |
| public T | |
| public int | Returns: a hash code value for this objectOverrides java. Get a hashCode for the 3D vector. |
| 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 boolean | Returns: true if any coordinate of this vector is NaN; false otherwiseReturns true if any coordinate of this vector is NaN; false otherwise |
| public FieldVector3D | |
| public FieldVector3D | |
| public FieldVector3D | Returns: a new normalized vector orthogonal to the instanceGet a vector orthogonal to the instance. |
| public FieldVector3D | |
| public FieldVector3D | |
| public FieldVector3D | Returns: a new vectorvector to subtract v)Subtract a vector from the instance. |
| public FieldVector3D | |
| public FieldVector3D | Returns: a new vectorscale factor to apply to v before subtracting it factor, final FieldVector3D<T> vector to subtract v)Subtract a scaled vector from the instance. |
| public FieldVector3D | |
| public FieldVector3D | Returns: a new vectorscale factor to apply to v before subtracting it factor, final FieldVector3D<T> vector to subtract v)Subtract a scaled vector from the instance. |
| public FieldVector3D | |
| public T[] | |
| public String | Returns: a string representation of this vectorOverrides java. Get a string representation of this vector. |
| public String | Returns: a string representation of this vectorthe custom format for components format)Get a string representation of this vector. |
| public Vector3D |