pub struct Polygon<T: FloatIsh> {
pub points: Vec<Point<T>>,
}Fields§
§points: Vec<Point<T>>Implementations§
Source§impl<T: FloatIsh> Polygon<T>
impl<T: FloatIsh> Polygon<T>
pub fn new() -> Self
pub fn iter_points(&self) -> Iter<'_, Point<T>>
pub fn iter_segments(&self) -> PolygonSegmentIter<'_, T> ⓘ
pub fn is_clockwise(&self) -> bool
pub fn clip(&self, _other: &Self) -> Self
Trait Implementations§
Source§impl<T: PartialOrd + FloatIsh> PartialOrd for Polygon<T>
impl<T: PartialOrd + FloatIsh> PartialOrd for Polygon<T>
impl<T: FloatIsh> StructuralPartialEq for Polygon<T>
Auto Trait Implementations§
impl<T> Freeze for Polygon<T>
impl<T> RefUnwindSafe for Polygon<T>where
T: RefUnwindSafe,
impl<T> Send for Polygon<T>where
T: Send,
impl<T> Sync for Polygon<T>where
T: Sync,
impl<T> Unpin for Polygon<T>where
T: Unpin,
impl<T> UnwindSafe for Polygon<T>where
T: UnwindSafe,
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