pub struct Polygon {
pub exterior: Vec<GeoCoord>,
pub interiors: Vec<Vec<GeoCoord>>,
}Expand description
A polygon with an exterior ring and optional interior rings (holes).
§Winding order
By convention the exterior ring is counter-clockwise and interior rings (holes) are clockwise, matching the GeoJSON / OGC direction. The tessellator does not currently enforce winding, but future validation may rely on it.
Fields§
§exterior: Vec<GeoCoord>Exterior ring (counter-clockwise winding).
interiors: Vec<Vec<GeoCoord>>Interior rings / holes (clockwise winding).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Polygon
impl RefUnwindSafe for Polygon
impl Send for Polygon
impl Sync for Polygon
impl Unpin for Polygon
impl UnsafeUnpin for Polygon
impl UnwindSafe for Polygon
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more