| Package | Description |
|---|---|
| org.xmlcml.euclid |
| Modifier and Type | Method and Description |
|---|---|
IntRange |
IntRangeArray.get(int serial) |
IntRange |
IntArray.getRange()
range of array.
|
IntRange |
IntRange.getRangeExtendedBy(int minExtend,
int maxExtend)
makes new IntRange extended by deltaMin and deltaMax.
|
IntRange |
Int2Range.getXRange()
get xrange
|
IntRange |
Int2Range.getYRange()
get yrange
|
IntRange |
IntRange.intersectionWith(IntRange r2)
intersect two ranges and take the range common to both; return invalid
range if no overlap
|
static IntRange |
IntRange.parseCurlyBracketString(String token)
interprets a String as an IntRange.
|
IntRange |
IntRange.plus(IntRange r2)
combine two ranges if both valid; takes greatest limits of both, else
returns InValid
|
| Modifier and Type | Method and Description |
|---|---|
static List<IntRange> |
IntRange.createIntRangeList(List<String> tokens)
creates a list of IntRanges from {...} syntax.
|
Iterator<IntRange> |
IntRangeArray.iterator() |
static List<IntRange> |
IntRange.joinRanges(List<IntRange> rangeList,
int tolerance)
joins intRanges A and B when A.getMax() == B.getMin().
|
| Modifier and Type | Method and Description |
|---|---|
void |
IntRangeArray.add(IntRange range) |
void |
IntSet.addRange(IntRange ir)
add all values from an IntRange if range is 2,5 adds 2,3,4,5
|
boolean |
IntRange.canJoin(IntRange range,
int tolerance)
can two ranges be joined at a common point?
(1,5) and (5,10) can be joined.
|
int |
IntRange.compareTo(IntRange intRange)
comparees on min values
|
IntMatrix |
IntMatrix.elementsInRange(IntRange r)
produce a mask of those elements which fall in a range.
|
boolean |
IntRange.includes(IntRange r2)
does one range include another
|
IntSet |
IntArray.inRange(IntRange r)
get elements within a range.
|
IntRange |
IntRange.intersectionWith(IntRange r2)
intersect two ranges and take the range common to both; return invalid
range if no overlap
|
boolean |
IntRange.intersectsWith(IntRange r2) |
boolean |
IntRange.isEqualTo(IntRange r)
invalid ranges return false
|
IntSet |
IntArray.outOfRange(IntRange r)
get elements outside a range.
|
IntRange |
IntRange.plus(IntRange r2)
combine two ranges if both valid; takes greatest limits of both, else
returns InValid
|
boolean |
IntRange.touches(IntRange range)
do ranges touch but not overlap?
range from [a,b] inclusive touches [c,a-1] or [b+1,c]
([a,b] overlaps with [b,c])
|
| Modifier and Type | Method and Description |
|---|---|
static List<IntRange> |
IntRange.joinRanges(List<IntRange> rangeList,
int tolerance)
joins intRanges A and B when A.getMax() == B.getMin().
|
| Constructor and Description |
|---|
Int2Range(IntRange xr,
IntRange yr)
initialise with min and max values;
|
IntRange(IntRange r)
copy constructor
|
RealRange(IntRange ir)
from an IntRange
|
| Constructor and Description |
|---|
IntRangeArray(List<IntRange> ranges) |
Copyright © 1994–2024 Peter Murray-Rust. All rights reserved.