# org.pdfclown.util.math.Interval< T > Class Template Reference

An interval of comparable objects. More...

List of all members.

## Public Member Functions
bool | Contains (T value)
| Gets whether the specified value is contained within this interval.
| Interval (T low, T high, bool lowInclusive, bool highInclusive)
| Interval (T low, T high)
## Properties
T | High`[get, set]`
| Gets/Sets the higher interval endpoint.
bool | HighInclusive`[get, set]`
| Gets/Sets whether the higher endpoint is inclusive.
T | Low`[get, set]`
| Gets/Sets the lower interval endpoint.
bool | LowInclusive`[get, set]`
| Gets/Sets whether the lower endpoint is inclusive.

##

### template<T>
class org::pdfclown::util::math::Interval< T >

An interval of comparable objects.

Type Constraints

  T | : | IComparable<T> |

## Constructor & Destructor Documentation

template<T >

org.pdfclown.util.math.Interval< T >.Interval | ( | T | low,
|  | T | high |
| ) |  |  |

template<T >

org.pdfclown.util.math.Interval< T >.Interval | ( | T | low,
|  | T | high,
|  | bool | lowInclusive,
|  | bool | highInclusive |
| ) |  |  |

## Member Function Documentation

template<T >

bool org.pdfclown.util.math.Interval< T >.Contains | ( | T | value | ) |

Gets whether the specified value is contained within this interval.

Parameters:

  | value | Value to check for containment.

## Property Documentation

template<T >

T org.pdfclown.util.math.Interval< T >.High`[get, set]`

Gets/Sets the higher interval endpoint.

template<T >

bool org.pdfclown.util.math.Interval< T >.HighInclusive`[get, set]`

Gets/Sets whether the higher endpoint is inclusive.

template<T >

T org.pdfclown.util.math.Interval< T >.Low`[get, set]`

Gets/Sets the lower interval endpoint.

template<T >

bool org.pdfclown.util.math.Interval< T >.LowInclusive`[get, set]`

Gets/Sets whether the lower endpoint is inclusive.

Copyright 2006-2013 Stefano Chizzolini. For more information, please visit PDF Clown home page.