public class Triplet
extends java.lang.Object
valueOf(double,double,double)
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Class identification name with source code version and date.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.
|
double |
getX()
Get the x-axis coordinate of the triplet.
|
double |
getY()
Get the y-axis coordinate of the triplet.
|
double |
getZ()
Get the z-axis coordinate of the triplet.
|
int |
hashCode()
Returns a hash code value for this stereo target.
|
double[] |
toArray()
Gets the coordinates as an array.
|
java.lang.String |
toString()
Gets a string representation of this stereo target.
|
static Triplet |
valueOf(double x,
double y,
double z)
Creates a new, immutable triplet from the input coordinates.
|
public static final java.lang.String ID
public double getX()
public double getY()
public double getZ()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to which this object is compared.public double[] toArray()
x-axis
, the second is the y-axis
, and the third is the
z-axis
coordinate.public static Triplet valueOf(double x, double y, double z)
x
- the x-axis coordinate.y
- the y-axis coordinate.z
- the z-axis coordinate.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona