pub struct Polygon {
pub vertices: Vec<Point2>,
}Expand description
Closed polygon in normalized [0, 1] coordinates.
Defined by an ordered list of vertices. The polygon is implicitly closed (last vertex connects to first).
Fields§
§vertices: Vec<Point2>Ordered vertices. Minimum 3 for a valid polygon.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Polygon
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