@Override public boolean equals(Object obj) { if (obj == null) return false; BBox b = (BBox) obj; // equals within a very small range return NumHelper.equalsEps(minLat, b.minLat) && NumHelper.equalsEps(maxLat, b.maxLat) && NumHelper.equalsEps(minLon, b.minLon) && NumHelper.equalsEps(maxLon, b.maxLon); }
public static boolean equalsEps(double d1, double d2) { return equalsEps(d1, d2, DEFAULT_PRECISION); }
@Override public boolean equals(Object obj) { if (obj == null) return false; @SuppressWarnings("unchecked") final GHPoint3D other = (GHPoint3D) obj; if (Double.isNaN(ele)) // very special case necessary in QueryGraph, asserted via test return NumHelper.equalsEps(lat, other.lat) && NumHelper.equalsEps(lon, other.lon); else return NumHelper.equalsEps(lat, other.lat) && NumHelper.equalsEps(lon, other.lon) && NumHelper.equalsEps(ele, other.ele); }
@Override public boolean equals(Object obj) { if (obj == null) return false; BBox b = (BBox) obj; // equals within a very small range return NumHelper.equalsEps(minLat, b.minLat) && NumHelper.equalsEps(maxLat, b.maxLat) && NumHelper.equalsEps(minLon, b.minLon) && NumHelper.equalsEps(maxLon, b.maxLon); }
@Override public boolean equals( Object obj ) { if (obj == null) return false; BBox b = (BBox) obj; // equals within a very small range return NumHelper.equalsEps(minLat, b.minLat) && NumHelper.equalsEps(maxLat, b.maxLat) && NumHelper.equalsEps(minLon, b.minLon) && NumHelper.equalsEps(maxLon, b.maxLon); }
@Override public boolean equals(Object obj) { if (obj == null) return false; BBox b = (BBox) obj; // equals within a very small range return NumHelper.equalsEps(minLat, b.minLat) && NumHelper.equalsEps(maxLat, b.maxLat) && NumHelper.equalsEps(minLon, b.minLon) && NumHelper.equalsEps(maxLon, b.maxLon); }
public static boolean equalsEps( double d1, double d2 ) { return equalsEps(d1, d2, DEFAULT_PRECISION); }
public static boolean equalsEps( float d1, float d2 ) { return equalsEps(d1, d2, DEFAULT_PRECISION); }
public static boolean equalsEps(double d1, double d2) { return equalsEps(d1, d2, DEFAULT_PRECISION); }
public static boolean equalsEps(double d1, double d2) { return equalsEps(d1, d2, DEFAULT_PRECISION); }
public static boolean equalsEps(float d1, float d2) { return equalsEps(d1, d2, DEFAULT_PRECISION); }
@Override public boolean equals(Object obj) { if (obj == null) return false; @SuppressWarnings("unchecked") final GHPoint3D other = (GHPoint3D) obj; if (Double.isNaN(ele)) // very special case necessary in QueryGraph, asserted via test return NumHelper.equalsEps(lat, other.lat) && NumHelper.equalsEps(lon, other.lon); else return NumHelper.equalsEps(lat, other.lat) && NumHelper.equalsEps(lon, other.lon) && NumHelper.equalsEps(ele, other.ele); }
@Override public boolean equals(Object obj) { if (obj == null) return false; @SuppressWarnings("unchecked") final GHPoint3D other = (GHPoint3D) obj; if (Double.isNaN(ele)) // very special case necessary in QueryGraph, asserted via test return NumHelper.equalsEps(lat, other.lat) && NumHelper.equalsEps(lon, other.lon); else return NumHelper.equalsEps(lat, other.lat) && NumHelper.equalsEps(lon, other.lon) && NumHelper.equalsEps(ele, other.ele); }