Struct Polygon
pub struct Polygon { /* private fields */ }Expand description
An ordered planar polygon boundary.
Implementations§
§impl Polygon
impl Polygon
pub fn vertex_count(&self) -> usize
pub fn vertex_count(&self) -> usize
Returns the vertex count.
pub fn twice_signed_area(&self) -> f64
pub fn twice_signed_area(&self) -> f64
Returns twice the signed area by the shoelace formula.
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