package rtree

  1. Overview
  2. Docs
A pure OCaml R-Tree implementation

Install

dune-project
 Dependency

Authors

Maintainers

Sources

rtree-0.3.0.tbz
sha256=1cf52e63601cfeaaae8b37ce8afaa6ef41dcadd575fc2bff15be14414bb4622c
sha512=57e1695156518793b705411e91648e7f2524f7bb5415c661ae47af59ef376b9d057bb612c3d1409fcc73d64b50d5df3030d7d0b533ec18c4d04bc63a35d0eb7e

doc/rtree/Rtree/Rectangle/index.html

Module Rtree.RectangleSource

include Envelope
Sourcetype t

The type for envelopes

Sourceval dimensions : int

The number of dimensions of this kind of envelope

Sourceval compare_dim : int -> t -> t -> int

compare_dim i a b compares a and b along the ith dimension.

Raises Invalid_arg if i >= dimensions.

Sourceval empty : t

The empty envelope.

Sourceval intersects : t -> t -> bool

Whether or not two envelopes intersect.

Sourceval merge : t -> t -> t

Computing the envelope that contains both the arguments

Sourceval merge_many : t list -> t

Like merge only for many envelopes.

Sourceval area : t -> float

Compute the area of an envelope.

Sourceval contains : t -> t -> bool

contains a b asks whether b is contained by a.

Sourceval pp : Format.formatter -> t -> unit

pp ppf t pretty prints the envelope t.

Sourceval coords : t -> float * float * float * float

Gives you x0, x1, y0, y1.

Sourceval v : x0:float -> y0:float -> x1:float -> y1:float -> t