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

pub struct Ellipse<S = Default> {
    pub rect: Rect<S>,
    pub resolution: S,
}
Expand description

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

Fields

rect: Rect<S>

The width and height off the Ellipse.

resolution: S

The resolution (number of sides) of the Ellipse.

Implementations

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

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.

Produces an iterator yielding the points of the ellipse circumference.

Produces an iterator yielding the triangles that describe the ellipse.

TODO: Describe the order.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

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

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

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

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

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

Auto Trait Implementations

Blanket Implementations

Convert the source color to the destination color using the specified method Read more

Convert the source color to the destination color using the bradford method by default Read more

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert into T with values clamped to the color defined bounds Read more

Convert into T. The resulting color might be invalid in its color space Read more

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.