public Location downstream ( int length ) { if ( length < 0 ) { throw new IllegalArgumentException ( "Parameter must be >= 0; is=" + length ) ; } if ( Math . signum ( mEnd + length ) == Math . signum ( mEnd ) || 0 == Math . signum ( mEnd + length ) ) { return new Location ( mEnd , mEnd + length ) ; } else { throw new IndexOutOfBoundsException ( "Specified length causes crossing of origin: " + length + "; " + toString ( ) ) ; } }
Return the adjacent location of specified length directly downstream of this location .