[][src]Struct valora::forms::Ngon

pub struct Ngon {
    pub phase: Angle,
    pub radius: f32,
    pub n: usize,
    pub center: P2,
    // some fields omitted
}

Fields

phase: Angleradius: f32n: usizecenter: P2

Methods

impl Ngon[src]

pub fn new(center: P2, n: usize, radius: f32) -> Self[src]

pub fn triangle(center: P2, radius: f32) -> Self[src]

pub fn square(center: P2, radius: f32) -> Self[src]

pub fn diamond(center: P2, radius: f32) -> Self[src]

pub fn rotate(&mut self, phase: Angle)[src]

Trait Implementations

impl Clone for Ngon[src]

impl Copy for Ngon[src]

impl Debug for Ngon[src]

impl Iterator for Ngon[src]

type Item = P2

The type of the elements being iterated over.

impl Paint for Ngon[src]

impl Rotate for Ngon[src]

impl Scale for Ngon[src]

impl Translate for Ngon[src]

Auto Trait Implementations

impl RefUnwindSafe for Ngon

impl Send for Ngon

impl Sync for Ngon

impl Unpin for Ngon

impl UnwindSafe for Ngon

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> Itertools for T where
    T: Iterator + ?Sized
[src]

impl<T> Itertools for T where
    T: Iterator + ?Sized
[src]

impl<P> Paint for P where
    P: Iterator<Item = Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>> + Clone
[src]

impl<T> ParallelBridge for T where
    T: Send + Iterator,
    <T as Iterator>::Item: Send
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,