Expand description
Crate root for generic geometry algorithms ported from geo.
Substantial portions of this crate (algorithm modules, trait patterns, and API surface) are
ported (and contain copied code) from the geo crate at commit
5d667f844716a3d0a17aa60bc0a58528cb5808c3:
https://github.com/georust/geo/tree/5d667f844716a3d0a17aa60bc0a58528cb5808c3/geo/src.
The original upstream project is dual-licensed under Apache-2.0 or MIT; the copied/ported code
here is used under the Apache-2.0 license consistent with this repository.
This top-level file orchestrates module exposure and numeric traits mirroring upstream design.
Re-exports§
Modules§
- algorithm
- This module includes all the functions of geometric calculations
Collection of generic geometry algorithms ported from the
geocrate. - geometry
- Geometry type re-exports
- prelude
- A prelude which re-exports the traits for manipulating objects in this
crate. Typically imported with
use geo::prelude::*.
Macros§
- coord
- Creates a
Coordfrom the given scalars. - line_
string - Creates a
LineStringcontaining the given coordinates. - point
- Creates a
Pointfrom the given coordinates. - polygon
- Creates a
Polygoncontaining the given coordinates. - wkt
- Creates a
crate::geometryfrom a WKT literal.
Traits§
- Coord
Float - For algorithms which can only use floating point
Points/Coords, like area or length calculations - Coord
Num - For algorithms which can use both integer and floating point
Points/Coords - GeoFloat
- A common numeric trait used for geo algorithms
- GeoNum
- A trait for methods which work for both integers and floating point