public int getIntersectionLength(final Interval other) { if (this.intersects(other)) { return (int) CoordMath.getOverlap(this.getStart(), this.getEnd(), other.getStart(), other.getEnd()); } return 0; }
public int getIntersectionLength(final Interval other) { if (this.intersects(other)) { return (int) CoordMath.getOverlap(this.getStart(), this.getEnd(), other.getStart(), other.getEnd()); } return 0; }
public int getIntersectionLength(final Interval other) { if (this.intersects(other)) { return (int)CoordMath.getOverlap(this.getStart(), this.getEnd(), other.getStart(), other.getEnd()); } return 0; }