package rtree

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

Install

Dune Dependency

Authors

Maintainers

Sources

rtree-0.1.1.tbz
sha256=408c9600703ea96f3ccd9f99dea853d5cb6c76c05e7e546ac18d90fc42426147
sha512=0d658adce2995dbe2de8bf5a93161fe0013872152417472cbf5bb00d8eed99a073e3942ad7cc6bb4e9d37d90853a58adb712fa5e9837301e4cd5c2ed68ebbaa5

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 t : t Repr.t

A runtime representation of envelopes.

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 coords : t -> float * float * float * float

Gives you x0, x1, y0, y1.

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

Innovation. Community. Security.