| Package | Description |
|---|---|
| org.xmlcml.euclid |
| Modifier and Type | Method and Description |
|---|---|
static Real2Range |
Real2Range.createFrom(String s)
reads in format of toString()
((a,b)(c,d))
|
Real2Range |
Real2Range.format(Integer decimalPlaces) |
Real2Range |
Real2Array.getRange2()
get max and min value of Real2_Array
|
Real2Range |
Real2Vector.getRange2()
get range of both coordinates
|
Real2Range |
Real2Range.getReal2RangeExtendedInX(double leftSide,
double rightSide)
extends XRange.
|
Real2Range |
Real2Range.getReal2RangeExtendedInY(double topExtend,
double bottomExtend)
extends XRange.
|
Real2Range |
Real2Range.getTranformedRange(Transform2 t2)
transform range (as copy)
|
Real2Range |
Real2Range.intersectionWith(Real2Range r2)
intersect two ranges and take the range common to both; return invalid
range if no overlap or either is null/invalid
|
Real2Range |
Real2Range.plus(Real2Range r2)
merge two ranges and take the maximum extents
not sure the logic is right
if this is INVALID then replace with r2
if this is VALID and r2 is INVALID return this
else return union of the two
|
Real2Range |
Real2Range.plusEquals(Real2Range r2) |
| Modifier and Type | Method and Description |
|---|---|
void |
RealRangeArray.addCaps(Real2Range r2r) |
void |
RealRangeArray.addCaps(Real2Range r2r,
RealRange.Direction dir) |
int |
Real2RangeComparator.compare(Real2Range r0,
Real2Range r1)
if Math.abs(d0-d1) <= epsilon
return -1 if either arg is null or any ranges in r0 or r1 are null or comparisons clash
|
boolean |
Real2Range.includes(Real2Range r)
is one Real2Range completely within another
|
Real2Range |
Real2Range.intersectionWith(Real2Range r2)
intersect two ranges and take the range common to both; return invalid
range if no overlap or either is null/invalid
|
boolean |
Real2Range.isEqualTo(Real2Range r2)
Deprecated.
|
boolean |
Real2Range.isEqualTo(Real2Range r2,
double eps)
is equals to.
|
boolean |
Real2Range.isLessThan(Real2Range bbox)
compares boxes independent of origin.
|
static boolean |
Real2Range.isNull(Real2Range r2r) |
Real2Range |
Real2Range.plus(Real2Range r2)
merge two ranges and take the maximum extents
not sure the logic is right
if this is INVALID then replace with r2
if this is VALID and r2 is INVALID return this
else return union of the two
|
Real2Range |
Real2Range.plusEquals(Real2Range r2) |
IntSet |
Real2Vector.subSet(Real2Range r)
create a subset of the points within a box
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Real2Range.format(List<Real2Range> boxList,
int nplaces) |
boolean |
Real2Range.isContainedInAnyRange(List<Real2Range> r2rList)
iterates through all boxes and return true r2r is contained in any range
|
| Constructor and Description |
|---|
Int2Range(Real2Range r)
copy constructor
|
Real2Interval(Real2Range range2)
constructor from range.
|
Real2Range(Real2Range r)
copy constructor
|
RealRangeArray(Real2Range textBox,
RealRange.Direction direction) |
| Constructor and Description |
|---|
RealRangeArray(List<Real2Range> r2rList,
RealRange.Direction dir) |
Copyright © 1994–2024 Peter Murray-Rust. All rights reserved.