Show / Hide Table of Contents

    Class RTree

    An RTree implementation.

    Inheritance
    Object
    RTree
    Implements
    IEnumerable<Polygon>
    IEnumerable
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Advanced.Algorithms.DataStructures
    Assembly: Advanced.Algorithms.dll
    Syntax
    public class RTree : IEnumerable<Polygon>, IEnumerable

    Constructors

    RTree(Int32)

    Declaration
    public RTree(int maxKeysPerNode)
    Parameters
    Type Name Description
    Int32 maxKeysPerNode

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32

    Methods

    Clear()

    Clear all data in this R-tree.

    Declaration
    public void Clear()

    Delete(Polygon)

    Time complexity: O(log(n)).

    Declaration
    public void Delete(Polygon polygon)
    Parameters
    Type Name Description
    Polygon polygon

    Exists(Polygon)

    Check if the given polygon exists in this Rtree. Time complexity: O(1).

    Declaration
    public bool Exists(Polygon searchPolygon)
    Parameters
    Type Name Description
    Polygon searchPolygon
    Returns
    Type Description
    Boolean

    GetEnumerator()

    Declaration
    public IEnumerator<Polygon> GetEnumerator()
    Returns
    Type Description
    IEnumerator<Polygon>

    Insert(Polygon)

    Inserts given polygon. Time complexity: O(log(n)).

    Declaration
    public void Insert(Polygon newPolygon)
    Parameters
    Type Name Description
    Polygon newPolygon

    RangeSearch(Rectangle)

    Returns a list of polygons whose minimum bounded rectangle intersects with given search rectangle.

    Declaration
    public List<Polygon> RangeSearch(Rectangle searchRectangle)
    Parameters
    Type Name Description
    Rectangle searchRectangle
    Returns
    Type Description
    List<Polygon>

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    IEnumerator

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    Back to top Generated by DocFX