Struct rgeometry::data::Polygon [−][src]
pub struct Polygon<T, P = ()> { /* fields omitted */ }
Implementations
impl<T, P> Polygon<T, P>
[src]
impl<T, P> Polygon<T, P>
[src]pub fn validate(&self) -> Result<(), Error> where
T: PolygonScalar,
[src]
T: PolygonScalar,
pub fn validate_weakly(&self) -> Result<(), Error> where
T: PolygonScalar,
[src]
T: PolygonScalar,
pub fn centroid(&self) -> Point<T, 2> where
T: PolygonScalar,
[src]
T: PolygonScalar,
pub fn signed_area(&self) -> T where
T: PolygonScalar,
[src]
T: PolygonScalar,
pub fn signed_area_2x(&self) -> T where
T: PolygonScalar,
[src]
T: PolygonScalar,
pub fn vertex(&self, idx: isize) -> &Point<T, 2>
[src]
pub fn vertex_orientation(&self, idx: isize) -> Orientation where
T: PolygonScalar,
[src]
T: PolygonScalar,
pub fn iter_boundary_edges(&self) -> EdgeIter<'_, T, P, 2>ⓘ
[src]
pub fn map_points<F>(self, f: F) -> Polygon<T, P> where
F: Fn(Point<T, 2>) -> Point<T, 2>,
[src]
F: Fn(Point<T, 2>) -> Point<T, 2>,
pub fn iter(&self) -> Iter<'_, T, P>ⓘ
[src]
pub fn iter_mut(&mut self) -> IterMut<'_, T, P>ⓘ
[src]
pub fn cast<U, F>(self, f: F) -> Polygon<U, P> where
T: PolygonScalar,
F: Fn(T) -> U + Clone,
[src]
T: PolygonScalar,
F: Fn(T) -> U + Clone,
Trait Implementations
impl<'a, T, P> From<&'a ConvexPolygon<T, P>> for &'a Polygon<T, P>
[src]
impl<'a, T, P> From<&'a ConvexPolygon<T, P>> for &'a Polygon<T, P>
[src]fn from(convex: &'a ConvexPolygon<T, P>) -> &'a Polygon<T, P>
[src]
fn from(convex: &'a ConvexPolygon<T, P>) -> &'a Polygon<T, P>
[src]Performs the conversion.
impl<T, P> From<ConvexPolygon<T, P>> for Polygon<T, P>
[src]
impl<T, P> From<ConvexPolygon<T, P>> for Polygon<T, P>
[src]fn from(convex: ConvexPolygon<T, P>) -> Polygon<T, P>
[src]
fn from(convex: ConvexPolygon<T, P>) -> Polygon<T, P>
[src]Performs the conversion.
impl<'a, 'b, T, P> Mul<&'b Polygon<T, P>> for &'a Transform<T, 2> where
T: TransformScalar,
P: Clone,
[src]
impl<'a, 'b, T, P> Mul<&'b Polygon<T, P>> for &'a Transform<T, 2> where
T: TransformScalar,
P: Clone,
[src]Auto Trait Implementations
impl<T, P> RefUnwindSafe for Polygon<T, P> where
P: RefUnwindSafe,
T: RefUnwindSafe,
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Send for Polygon<T, P> where
P: Send,
T: Send,
P: Send,
T: Send,
impl<T, P> Sync for Polygon<T, P> where
P: Sync,
T: Sync,
P: Sync,
T: Sync,
impl<T, P> Unpin for Polygon<T, P> where
P: Unpin,
T: Unpin,
P: Unpin,
T: Unpin,
impl<T, P> UnwindSafe for Polygon<T, P> where
P: UnwindSafe,
T: UnwindSafe,
P: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,