There is a guarantee, that if this object implements {@link RectangularPattern} interface,then this method works very quickly (O(1) operations) and without exceptions.
Moreover, all patterns, implemented in this package, have very quick implementations of this method (O(1) operations). Also, the implementations of this method in this package never throw exceptions.
It is theoretically possible, that in custom implementations of this interface (outside this package) this method will work slowly, up to O(N) operations, N is the number of points in this pattern. However, even in such implementations this method must not lead to {@link TooManyPointsInPatternError} / OutOfMemoryError, like {@link #points()} method. @param coordIndex the index of the coordinate (0 for x, 1 for y, 2 for z, etc.). @return the range from minimal to maximal coordinate with this index. @throws IndexOutOfBoundsException if coordIndex<0 or coordIndex>={@link #dimCount()}. @see #roundedCoordRange(int) @see #coordMin() @see #coordMax() @see #coordArea()
|
|