Struct nannou_core::geom::ellipse::Ellipse [−][src]
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.
pub fn circumference(self) -> Circumference<S>ⓘNotable traits for Circumference<S>impl<S> Iterator for Circumference<S> where
S: EllipseScalar, type Item = [S; 2];
pub fn circumference(self) -> Circumference<S>ⓘNotable traits for Circumference<S>impl<S> Iterator for Circumference<S> where
S: EllipseScalar, type Item = [S; 2];
impl<S> Iterator for Circumference<S> where
S: EllipseScalar, type Item = [S; 2];
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
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
Auto Trait Implementations
impl<S> RefUnwindSafe for Ellipse<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for Ellipse<S> where
S: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
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