Class S1Point
java.lang.Object
org.apache.commons.math3.geometry.spherical.oned.S1Point
- All Implemented Interfaces:
Serializable, Point<Sphere1D>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleCompute the distance between the instance and another point.static doubleCompute the distance (angular separation) between two points.booleanTest for the equality of two points on the 2-sphere.doublegetAlpha()Get the azimuthal angle \( \alpha \).getSpace()Get the space to which the point belongs.Get the corresponding normalized vector in the 2D euclidean space.inthashCode()Get a hashCode for the 2D vector.booleanisNaN()Returns true if any coordinate of this point is NaN; false otherwise
-
Field Details
-
NaN
A vector with all coordinates set to NaN. -
serialVersionUID
private static final long serialVersionUIDSerializable UID.- See Also:
-
alpha
private final double alphaAzimuthal angle \( \alpha \). -
vector
Corresponding 2D normalized vector.
-
-
Constructor Details
-
S1Point
public S1Point(double alpha) Simple constructor. Build a vector from its coordinates- Parameters:
alpha- azimuthal angle \( \alpha \)- See Also:
-
S1Point
Build a point from its internal components.- Parameters:
alpha- azimuthal angle \( \alpha \)vector- corresponding vector
-
-
Method Details
-
getAlpha
public double getAlpha()Get the azimuthal angle \( \alpha \).- Returns:
- azimuthal angle \( \alpha \)
- See Also:
-
getVector
Get the corresponding normalized vector in the 2D euclidean space.- Returns:
- normalized vector
-
getSpace
-
isNaN
-
distance
-
distance
-
equals
Test for the equality of two points on the 2-sphere.If all coordinates of two points are exactly the same, and none are
Double.NaN, the two points are considered to be equal.NaNcoordinates are considered to affect globally the vector and be equals to each other - i.e, if either (or all) coordinates of the 2D vector are equal toDouble.NaN, the 2D vector is equal toNaN. -
hashCode
-