Package org.opentcs.data.model
Class Triple
java.lang.Object
org.opentcs.data.model.Triple
- All Implemented Interfaces:
Serializable
A generic 3-tuple of long integer values, usable for 3D coordinates and vectors, for instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Triple
public Triple(long x, long y, long z) Creates a new Triple with the given values.- Parameters:
x
- The X coordinate.y
- The Y coordinate.z
- The Z coordindate.
-
-
Method Details
-
getX
public long getX()Returns the x coordinate.- Returns:
- x
-
getY
public long getY()Returns the y coordinate.- Returns:
- y
-
getZ
public long getZ()Returns the z coordinate.- Returns:
- z
-
equals
-
hashCode
public int hashCode() -
toString
-