Struct rgeometry::data::Polygon [−][src]
pub struct Polygon<T> { /* fields omitted */ }
Implementations
$O(1)$
pub fn normalize(&self) -> Polygon<BigRational> where
T: PolygonScalar + Into<BigInt>,
T::ExtendedSigned: Into<BigInt>,
pub fn signed_area<F>(&self) -> F where
T: PolygonScalar + Into<F>,
F: NumOps<F, F> + Sum + FromPrimitive,
pub fn iter_boundary(&self) -> CursorIter<'_, T>ⓘNotable traits for CursorIter<'a, T>
impl<'a, T> Iterator for CursorIter<'a, T> type Item = Cursor<'a, T>;
pub fn iter_boundary_edges(&self) -> EdgeIter<'_, T>ⓘ
Panics if the edge isn’t part of the polygon.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for Polygon<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Polygon<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V