package mlgpx

  1. Overview
  2. Docs

Module Metadata.BoundsSource

Sourcetype t = bounds

Create bounds from validated coordinates

Sourceval make_from_floats : minlat:float -> minlon:float -> maxlat:float -> maxlon:float -> (t, string) result

Create bounds from float coordinates with validation

Sourceval min_coords : t -> Coordinate.t

Get minimum corner coordinates

Sourceval max_coords : t -> Coordinate.t

Get maximum corner coordinates

Sourceval contains : t -> Coordinate.t -> bool

Check if coordinate is within bounds

Sourceval area : t -> float

Calculate bounds area in square degrees

Sourceval compare : t -> t -> int

Compare bounds

Sourceval equal : t -> t -> bool

Test bounds equality

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

Pretty print bounds

OCaml

Innovation. Community. Security.