[][src]Trait plexus::primitive::Polygonal

pub trait Polygonal: Topological {
    fn is_convex(&self) -> bool
    where
        Self::Vertex: AsPosition,
        Position<Self::Vertex>: EuclideanSpace + FiniteDimensional<N = U2>,
        Scalar<Position<Self::Vertex>>: FloatConst
, { ... } }

Primitive polygonal structure.

Polygonal types are Topological types with three or more edges. These types are strictly topological and do not necessarily represent geometric concepts like polygons, which are only defined in $\Reals^2$. However, Polygonal types are often used as a geometric approximation of polygons.

Provided methods

fn is_convex(&self) -> bool where
    Self::Vertex: AsPosition,
    Position<Self::Vertex>: EuclideanSpace + FiniteDimensional<N = U2>,
    Scalar<Position<Self::Vertex>>: FloatConst

Determines if a polygonal structure is convex.

This function rejects degenerate polygons, such as polygons with collinear or converged vertices.

Loading content...

Implementors

impl<T> Polygonal for Polygon<T>[src]

impl<T> Polygonal for NGon<[T; 3]>[src]

impl<T> Polygonal for NGon<[T; 4]>[src]

impl<T> Polygonal for NGon<[T; 5]>[src]

impl<T> Polygonal for NGon<[T; 6]>[src]

impl<T> Polygonal for NGon<[T; 7]>[src]

impl<T> Polygonal for NGon<[T; 8]>[src]

impl<T> Polygonal for NGon<[T; 9]>[src]

impl<T> Polygonal for NGon<[T; 10]>[src]

impl<T> Polygonal for NGon<[T; 11]>[src]

impl<T> Polygonal for NGon<[T; 12]>[src]

Loading content...