Struct geom::Ring [−][src]
Expand description
Maybe a misnomer, but like a PolyLine, but closed.
Fields
pts: Vec<Pt2D>
Implementations
Draws the ring with some thickness, with half of it straddling the interor of the ring, and half on the outside.
Be careful with the order of results. Hits on an earlier line segment of other show up first, but if the ring hits a line segment at multiple points, who knows. Dedupes.
Extract all PolyLines and Rings. Doesn’t handle crazy double loops and stuff.
Produces a GeoJSON polygon, optionally mapping the world-space points back to GPS.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Ring
impl UnwindSafe for Ring
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self