Struct nannou::geom::ellipse::Section [] [src]

pub struct Section<S = DefaultScalar> {
    pub ellipse: Ellipse<S>,
    pub offset_radians: S,
    pub section_radians: S,
}

A subsection of an Ellipse.

Fields

The ellipse from which this section is produced.

The angle in radians of the start of the section.

The section of the circumference in radians.

Methods

impl<S> Section<S> where
    S: BaseNum + Neg<Output = S>, 
[src]

Important traits for Circumference<S>
[src]

Produces an iterator yielding the points of the ellipse circumference.

impl<S> Section<S> where
    S: BaseFloat
[src]

Important traits for Triangles<S>
[src]

Produces an iterator yielding the triangles that describe the ellipse section.

TODO: Describe the order.

[src]

The same as Triangles, but produces the indices of each triangle into the returned TriangleVertices iterator rather than the vertices for each corner.

Trait Implementations

impl<S: Copy> Copy for Section<S>
[src]

impl<S: Clone> Clone for Section<S>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for Section<S>
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for Section<S>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<S: PartialOrd> PartialOrd for Section<S>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

impl<S> Send for Section<S> where
    S: Send

impl<S> Sync for Section<S> where
    S: Sync