Module geo_types::geometry

source ·

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 Coords, representing a path between locations. To be valid, a LineString must be empty, or have two or more coords.
  • 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 Aliases§