package rtree

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

rtree-0.2.0.tbz
sha256=e7679552ebaf3b16fe441811436ddc3a13732912632f94e2473a9c2ea7e19991
sha512=7be935e9ce89e2629174efb55a07902fc7a3a1b490b2c78aa799bd24f9e57b907fe215e9c2a6cfce7ce6cb2ac8999fa39152ef63602ef911b35f7c9f513b8462

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