Instances of this class are guaranteed to be immutable.
| Modifier and Type | Field and Description |
|---|---|
| private final double | alpha
Azimuthal angle \( \alpha \). |
| public static final S1Point | NaN
A vector with all coordinates set to NaN. |
| private static final long | serialVersionUID
Serializable UID. |
| private final Vector2D | vector
Corresponding 2D normalized vector. |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public double | distance(final Point<Sphere1D>
second point point)Implements org. Compute the distance between the instance and another point. |
| public static double | |
| public boolean | Returns: true if two points on the 2-sphere objects are equal, false if object is null, not an instance of S2Point, or not equal to this S2Point instanceObject to test for equality to this other)Overrides java. Test for the equality of two points on the 2-sphere. |
| public double | |
| public Space | getSpace()
Implements org. Get the space to which the point belongs. |
| public Vector2D | Returns: normalized vectorGet the corresponding normalized vector in the 2D euclidean space. |
| public int | Returns: a hash code value for this objectOverrides java. Get a hashCode for the 2D vector. |
| public boolean | isNaN()
Implements org. Returns true if any coordinate of this point is NaN; false otherwise |
| alpha | back to summary |
|---|---|
| private final double alpha Azimuthal angle \( \alpha \). | |
| NaN | back to summary |
|---|---|
| public static final S1Point NaN A vector with all coordinates set to NaN. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable UID. | |
| vector | back to summary |
|---|---|
| private final Vector2D vector Corresponding 2D normalized vector. | |
| S1Point | back to summary |
|---|---|
| public S1Point(final double alpha) Simple constructor. Build a vector from its coordinates
| |
| S1Point | back to summary |
|---|---|
| private S1Point(final double alpha, final Vector2D vector) Build a point from its internal components.
| |
| distance | back to summary |
|---|---|
| public double distance(final Point<Sphere1D> point) Implements org. Doc from org. Compute the distance between the instance and another point. | |
| distance | back to summary |
|---|---|
| public static double distance(S1Point p1, S1Point p2) Compute the distance (angular separation) between two points. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Test for the equality of two points on the 2-sphere.
If all coordinates of two points are exactly the same, and none are
| |
| getAlpha | back to summary |
|---|---|
| public double getAlpha() Get the azimuthal angle \( \alpha \).
| |
| getSpace | back to summary |
|---|---|
| public Space getSpace() Implements org. Doc from org. Get the space to which the point belongs.
| |
| getVector | back to summary |
|---|---|
| public Vector2D getVector() Get the corresponding normalized vector in the 2D euclidean space.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Get a hashCode for the 2D vector. All NaN values have the same hash code.
| |
| isNaN | back to summary |
|---|---|
| public boolean isNaN() Implements org. Doc from org. Returns true if any coordinate of this point is NaN; false otherwise
| |