Module geometry

Source

Structs§

Coord
A lightweight struct used to store coordinates on the 2-dimensional Cartesian plane.
GeometryCollection
A collection of Geometry types.
Line
A line segment made up of exactly two Coords.
LineString
An ordered collection of Coords, representing a path between locations. To be valid, a LineString must be empty, or have two or more coords.
MultiLineString
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.
MultiPoint
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.
MultiPolygon
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.
Point
A single point in 2D space.
Polygon
A bounded two-dimensional area.
Rect
An axis-aligned bounded 2D rectangle whose area is defined by minimum and maximum Coords.
Triangle
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§

Geometry
An enum representing any possible geometry type.

Type Aliases§

CoordinateDeprecated