1 package jalview.datamodel;
4 * A bean that models an (x, y, z) position in 3-D space
6 public final class Point
14 public Point(float xVal, float yVal, float zVal)
22 * toString for convenience of inspection in debugging or logging
25 public String toString()
27 return String.format("[%f, %f, %f]", x, y, z);
35 result = prime * result + Float.floatToIntBits(x);
36 result = prime * result + Float.floatToIntBits(y);
37 result = prime * result + Float.floatToIntBits(z);
42 public boolean equals(Object obj)
52 if (getClass() != obj.getClass())
56 Point other = (Point) obj;
57 if (Float.floatToIntBits(x) != Float.floatToIntBits(other.x))
61 if (Float.floatToIntBits(y) != Float.floatToIntBits(other.y))
65 if (Float.floatToIntBits(z) != Float.floatToIntBits(other.z))