Table of Contents

Class Interval

Namespace
NetTopologySuite.Index.Strtree
Assembly
NetTopologySuite.dll

A contiguous portion of 1D-space. Used internally by SIRtree.

public class Interval : IIntersectable<Interval>, IExpandable<Interval>
Inheritance
Interval
Implements
Inherited Members

Constructors

Interval(Interval)

public Interval(Interval other)

Parameters

other Interval

Interval(double, double)

public Interval(double min, double max)

Parameters

min double
max double

Properties

Centre

Gets the centre of the interval.

public double Centre { get; }

Property Value

double

Methods

Equals(object)

public override bool Equals(object o)

Parameters

o object

Returns

bool

ExpandToInclude(Interval)

public void ExpandToInclude(Interval other)

Parameters

other Interval

ExpandedBy(Interval)

public Interval ExpandedBy(Interval other)

Parameters

other Interval

Returns

Interval

this

GetHashCode()

public override int GetHashCode()

Returns

int

Intersects(Interval)

public bool Intersects(Interval other)

Parameters

other Interval

Returns

bool