/** * Returns true if object is equals to * <code>this</code>. Tests equality between the ellipsoid used by the * transformation. * * @param o The object to compare this Geographic2Geocentric against */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof Geographic2Geocentric) { Geographic2Geocentric gg2gc = (Geographic2Geocentric) o; return getEllipsoid().equals(gg2gc.getEllipsoid()); } return false; }