IlvDataInterval
Constructor Attributes | Constructor Name and Description |
---|---|
IlvDataInterval(min, max)
|
Method Attributes | Method Name and Description |
---|---|
addInterval(itv)
Adds the given interval.
|
|
addValue(val)
Adds the given value to this interval.
|
|
clamp(value)
Clamps the specified value to this interval.
|
|
clone()
Returns a copy of this data interval.
|
|
contains(itv)
Returns whether the given interval is included within this interval.
|
|
empty()
Empties this interval.
|
|
equals(obj)
Returns whether this data interval is equal to the specified data
interval.
|
|
expand(delta)
Expands the interval from the given value.
|
|
Returns the length of this interval.
|
|
getMax()
Returns the maximum bound.
|
|
Returns the middle value of this interval.
|
|
getMin()
Returns the minimum bound.
|
|
intersection(itv)
Computes the intersection of this interval with the given interval and
modifies this data interval accordingly.
|
|
intersects(itv)
Returns whether the given interval intersects this interval.
|
|
isAfter(val)
Returns whether the given value is greater than or equal to the maximum
bound.
|
|
isBefore(val)
Returns whether the given value is lower than or equal to the minimum bound.
|
|
isEmpty()
Returns whether this interval is empty.
|
|
isInside(val)
Returns whether the given value is included within this interval.
|
|
isOutside(val)
Returns whether the given value lies outside this interval.
|
|
isStrictlyAfter(val)
Returns whether the given value is strictly greater than the maximum
bound.
|
|
isStrictlyBefore(val)
Returns whether the given value is strictly lower than the minimum bound.
|
|
isStrictlyInside(val)
Returns whether the given value is strictly included within this interval.
|
|
isStrictlyOutside(val)
Returns whether the given value lies strictly outside this interval.
|
|
set(min, max)
Sets the minimum and maximum bounds.
|
|
setMax(val)
Sets the maximum bound.
|
|
setMin(val)
Sets the minimum bound.
|
|
toString()
Returns a string representation of this data interval.
|
|
translate(delta)
Translates the interval from the given value.
|
The method also distinguishes two specific cases:
min-delta, max+delta
. This method has no effects on
an empty interval.
min+delta, max+delta
.