[][src]Struct nannou::ui::prelude::widget::primitive::shape::oval::Circumference

pub struct Circumference { /* fields omitted */ }

An iterator yielding the edges of an Oval (or some section of an Oval) as a circumference represented as a series of edges.

Methods

impl Circumference[src]

pub fn new(rect: Rect, resolution: usize) -> Circumference[src]

An iterator yielding the Oval's edges as a circumference represented as a series of points.

resolution is clamped to a minimum of 1 as to avoid creating a Circumference that produces NaN values.

pub fn new_section(rect: Rect, resolution: usize, radians: f64) -> Circumference[src]

Produces a new iterator that yields only a section of the Oval's circumference, where the section is described via its angle in radians.

resolution is clamped to a minimum of 1 as to avoid creating a Circumference that produces NaN values.

impl Circumference[src]

pub fn section(self, radians: f64) -> Circumference[src]

Produces a new iterator that yields only a section of the Oval's circumference, where the section is described via its angle in radians.

pub fn offset_radians(self, radians: f64) -> Circumference[src]

Rotates the position at which the iterator starts yielding points by the given radians.

This is particularly useful for yielding a different section of the circumference when using circumference_section

pub fn triangles(self) -> Triangles[src]

Produces an Iterator yielding Triangles.

Triangles are created by joining each edge yielded by the inner Circumference to the middle of the Oval.

Trait Implementations

impl Clone for Circumference[src]

impl Iterator for Circumference[src]

type Item = [f64; 2]

The type of the elements being iterated over.

Auto Trait Implementations

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, 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> ParallelBridge for T where
    T: Send + Iterator,
    <T as Iterator>::Item: Send
[src]

impl<T> SetParameter for T

impl<T> SetParameter for T

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>,