Struct nannou_core::geom::ellipse::Section [−][src]
pub struct Section<S = Default> {
pub ellipse: Ellipse<S>,
pub offset_radians: S,
pub section_radians: S,
}
Expand description
A subsection of an Ellipse
.
Fields
ellipse: Ellipse<S>
The ellipse from which this section is produced.
offset_radians: S
The angle in radians of the start of the section.
section_radians: S
The section of the circumference in radians.
Implementations
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 section.
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 Section<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for Section<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