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

pub struct Ellipse<S = DefaultScalar> {
    pub rect: Rect<S>,
    pub resolution: usize,
}

A simple ellipse type with helper methods around the ellipse module's functions.

Fields

The width and height off the Ellipse.

The resolution (number of sides) of the Ellipse.

Methods

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

[src]

Construct a new ellipse from its bounding rect and resolution (number of sides).

[src]

A section of the Ellipse.

offset_radians describes the angle at which the offset begins.

section_radians describes how large the section is as an angle.

Important traits for Circumference<S>
[src]

Produces an iterator yielding the points of the ellipse circumference.

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

Important traits for Triangles<S>
[src]

Produces an iterator yielding the triangles that describe the ellipse.

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 Ellipse<S>
[src]

impl<S: Clone> Clone for Ellipse<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 Ellipse<S>
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for Ellipse<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 Ellipse<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 Ellipse<S> where
    S: Send

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