Module geo::geometry

source ·
Expand description

This module makes all geometry types available

Structs

A lightweight struct used to store coordinates on the 2-dimensional Cartesian plane.
A collection of Geometry types.
A line segment made up of exactly two Coords.
An ordered collection of two or more Coords, representing a path between locations.
A collection of LineStrings. Can be created from a Vec of LineStrings or from an Iterator which yields LineStrings. Iterating over this object yields the component LineStrings.
A collection of Points. Can be created from a Vec of Points, or from an Iterator which yields Points. Iterating over this object yields the component Points.
A collection of Polygons. Can be created from a Vec of Polygons, or from an Iterator which yields Polygons. Iterating over this object yields the component Polygons.
A single point in 2D space.
A bounded two-dimensional area.
An axis-aligned bounded 2D rectangle whose area is defined by minimum and maximum Coords.
A bounded 2D area whose three vertices are defined by Coords. The semantics and validity are that of the equivalent Polygon; in addition, the three vertices must not be collinear and they must be distinct.

Enums

An enum representing any possible geometry type.

Type Definitions

CoordinateDeprecated