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
-
-
Constructor Details
-
S1Point
Simple constructor. Build a vector from its coordinates- Parameters:
alpha- azimuthal angle \( \alpha \)- See Also:
-
-
Method Details
-
getAlpha
Get the azimuthal angle \( \alpha \).- Returns:
- azimuthal angle \( \alpha \)
- See Also:
-
getVector
-
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
-