public final class LongitudeLatitudeRadius extends Object implements IEquatable<LongitudeLatitudeRadius>, IEquatableEpsilon<LongitudeLatitudeRadius>, ImmutableValueType
| Constructor and Description |
|---|
LongitudeLatitudeRadius()
Initializes a new instance.
|
LongitudeLatitudeRadius(AzimuthElevationRange coordinates)
Initializes a set of
LongitudeLatitudeRadius coordinates from the provided set of
AzimuthElevationRange coordinates. |
LongitudeLatitudeRadius(Cartesian coordinates)
Initializes a set of
LongitudeLatitudeRadius coordinates from the provided set of Cartesian coordinates. |
LongitudeLatitudeRadius(Cylindrical coordinates)
Initializes a set of
LongitudeLatitudeRadius coordinates from the provided set of Cylindrical coordinates. |
LongitudeLatitudeRadius(double[] elements)
Initializes a set of
LongitudeLatitudeRadius coordinates from the first 3 consecutive elements in the provided array. |
LongitudeLatitudeRadius(double[] elements,
int startIndex)
Initializes a set of
LongitudeLatitudeRadius coordinates from the provided array. |
LongitudeLatitudeRadius(double longitude,
double latitude,
double radius)
Initializes a set of
LongitudeLatitudeRadius coordinates from the provided longitude, latitude, and radius. |
LongitudeLatitudeRadius(Spherical coordinates)
Initializes a set of
LongitudeLatitudeRadius coordinates from the provided set of
Spherical coordinates. |
| Modifier and Type | Method and Description |
|---|---|
static Motion1<LongitudeLatitudeRadius> |
convertMotion(Motion1<Cartesian> motion,
int order)
Converts the motion given in terms of a set of
Cartesian coordinates to motion
of the corresponding set of LongitudeLatitudeRadius coordinates. |
static boolean |
equals(LongitudeLatitudeRadius left,
LongitudeLatitudeRadius right)
Returns
true if the two instances are exactly equal. |
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
boolean |
equalsEpsilon(LongitudeLatitudeRadius other,
double epsilon)
Indicates whether each coordinate value of another instance of this type
is within the required tolerance of the corresponding coordinate value of this instance.
|
boolean |
equalsType(LongitudeLatitudeRadius other)
Indicates whether another instance of this type is exactly equal to this instance.
|
double |
get(int index)
|
double |
getLatitude()
Gets the angular coordinate measured from the xy-plane and toward the positive z-axis.
|
int |
getLength()
Gets the number of elements in this set of coordinates.
|
double |
getLongitude()
Gets the angular coordinate lying in the xy-plane measured from the positive x-axis and toward the positive y-axis.
|
double |
getRadius()
Gets the linear coordinate measured from the origin.
|
static LongitudeLatitudeRadius |
getZero()
Gets a set of
LongitudeLatitudeRadius coordinates with values of zero. |
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(LongitudeLatitudeRadius left,
LongitudeLatitudeRadius right)
Returns
true if the two instances are not exactly equal. |
String |
toString()
Returns the string representation of the value of this instance.
|
public LongitudeLatitudeRadius()
public LongitudeLatitudeRadius(double longitude,
double latitude,
double radius)
LongitudeLatitudeRadius coordinates from the provided longitude, latitude, and radius.longitude - The angular coordinate lying in the xy-plane measured from the positive x-axis and toward the positive y-axis.latitude - The angular coordinate measured from the xy-plane and toward the positive z-axis.radius - The linear coordinate measured from the origin.public LongitudeLatitudeRadius(@Nonnull Spherical coordinates)
LongitudeLatitudeRadius coordinates from the provided set of
Spherical coordinates.coordinates - The set of Spherical coordinates.public LongitudeLatitudeRadius(@Nonnull Cylindrical coordinates)
LongitudeLatitudeRadius coordinates from the provided set of Cylindrical coordinates.coordinates - The set of Cylindrical coordinates.public LongitudeLatitudeRadius(@Nonnull Cartesian coordinates)
LongitudeLatitudeRadius coordinates from the provided set of Cartesian coordinates.coordinates - The set of Cartesian coordinates.public LongitudeLatitudeRadius(@Nonnull AzimuthElevationRange coordinates)
LongitudeLatitudeRadius coordinates from the provided set of
AzimuthElevationRange coordinates.coordinates - The set of AzimuthElevationRange coordinates.public LongitudeLatitudeRadius(@Nonnull double[] elements)
LongitudeLatitudeRadius coordinates from the first 3 consecutive elements in the provided array.elements - The array of coordinate values. The first value is treated as the Longitude (get), the second as the Latitude (get), and the third as the Radius (get).ArgumentNullException - Thrown when elements is null.ArgumentOutOfRangeException - An object of this type must be constructed from an array with at least 3 elements.public LongitudeLatitudeRadius(@Nonnull double[] elements, int startIndex)
LongitudeLatitudeRadius coordinates from the provided array.elements - The array of coordinate values. The first value is treated as the Longitude (get), the second as the Latitude (get), and the third as the Radius (get).startIndex - The index of the first element in the array to use.ArgumentNullException - Thrown when elements is null.ArgumentOutOfRangeException - Thrown when an object of this type is constructed from an array with less than 3 elements.@Nonnull public static LongitudeLatitudeRadius getZero()
LongitudeLatitudeRadius coordinates with values of zero.@Nonnull public static Motion1<LongitudeLatitudeRadius> convertMotion(@Nonnull Motion1<Cartesian> motion, int order)
Cartesian coordinates to motion
of the corresponding set of LongitudeLatitudeRadius coordinates.motion - The Cartesian motion.order - The order of the highest derivative to convert.LongitudeLatitudeRadius.public final double getLongitude()
public final double getLatitude()
public final double getRadius()
public final int getLength()
public final double get(int index)
index of 0, 1, and 2 corresponding to the coordinates
Longitude (get), Latitude (get), and Radius (get).index - The index to retrieve.index.ArgumentOutOfRangeException - Thrown when index is less than 0 or greater than or equal to Length (get).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 final boolean equalsType(@Nonnull LongitudeLatitudeRadius other)
equalsType in interface IEquatable<LongitudeLatitudeRadius>other - The instance to compare to this instance.true if other represents the same value as this instance; otherwise false.public final boolean equalsEpsilon(@Nonnull LongitudeLatitudeRadius other, double epsilon)
equalsEpsilon in interface IEquatableEpsilon<LongitudeLatitudeRadius>other - The set of LongitudeLatitudeRadius coordinates to compare to this instance.epsilon - The limit at which the absolute differences between the coordinate values will not be considered equal.true if the absolute differences are less than or equal to epsilon; otherwise false.public int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)public String toString()
public static boolean equals(@Nonnull LongitudeLatitudeRadius left, @Nonnull LongitudeLatitudeRadius 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(@Nonnull LongitudeLatitudeRadius left, @Nonnull LongitudeLatitudeRadius 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.