public final class Precession extends Object implements IEquatable<Precession>
| Constructor and Description |
|---|
Precession(double zeta,
double z,
double theta,
double meanObliquity)
Initializes a new instance with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
static boolean |
equals(Precession left,
Precession right)
Returns
true if the two instances are exactly equal. |
boolean |
equalsType(Precession other)
Indicates whether another instance of this type is exactly equal to this instance.
|
double |
getMeanObliquity()
Gets the mean obliquity of the ecliptic, in radians.
|
double |
getTheta()
Gets the accumulated precession angle theta, in radians, used to tilt the x-y-plane to the mean equator of date.
|
double |
getZ()
Gets the accumulated precession angle z, in radians, used to align the x-axis with the mean equinox of date by rotating
along the mean equator of date.
|
double |
getZeta()
Gets the accumulated precession angle zeta, in radians, used to align the x-axis toward the direction in which
the pole is to be tilted off of the ICRF z-axis.
|
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
static boolean |
notEquals(Precession left,
Precession right)
Returns
true if the two instances are not exactly equal. |
public Precession(double zeta,
double z,
double theta,
double meanObliquity)
zeta - The accumulated precession angle zeta, in radians, used to align the x-axis toward the direction in which
the pole is to be tilted off of the ICRF z-axis.z - The accumulated precession angle z, in radians, used to align the x-axis with the mean equinox of date by rotating
along the mean equator of date.theta - The accumulated precession angle theta, in radians, used to tilt the x-y-plane to the mean equator of date.meanObliquity - The mean obliquity of the ecliptic, in radians.public final double getZeta()
public final double getZ()
public final double getTheta()
public final double getMeanObliquity()
public final boolean equalsType(Precession other)
equalsType in interface IEquatable<Precession>other - The instance to compare to this instance.true if other represents the same value as this instance; otherwise false.public boolean equals(Object obj)
equals in class Objectobj - The object to compare to this instance.true if obj is an instance of this type and represents the same value as this instance; otherwise false.Object.hashCode(),
HashMappublic int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)public static boolean equals(Precession left, Precession right)
true if the two instances are exactly equal.left - The instance to compare to right.right - The instance to compare to left.true if left represents the same value as right; otherwise false.public static boolean notEquals(Precession left, Precession right)
true if the two instances are not exactly equal.left - The instance to compare to right.right - The instance to compare to left.true if left does not represent the same value as right; otherwise false.