pub struct Section<S = f32> {
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§
source§impl<S> Section<S>where
S: EllipseScalar,
impl<S> Section<S>where
S: EllipseScalar,
sourcepub fn circumference(self) -> Circumference<S> ⓘ
pub fn circumference(self) -> Circumference<S> ⓘ
Produces an iterator yielding the points of the ellipse circumference.
sourcepub fn triangles(self) -> Triangles<S> ⓘ
pub fn triangles(self) -> Triangles<S> ⓘ
Produces an iterator yielding the triangles that describe the ellipse section.
TODO: Describe the order.
sourcepub fn triangle_indices(&self) -> (TriangleVertices<S>, TriangleIndices)
pub fn triangle_indices(&self) -> (TriangleVertices<S>, TriangleIndices)
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§
source§impl<S> PartialEq for Section<S>where
S: PartialEq,
impl<S> PartialEq for Section<S>where
S: PartialEq,
source§impl<S> PartialOrd for Section<S>where
S: PartialOrd,
impl<S> PartialOrd for Section<S>where
S: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<S> Copy for Section<S>where
S: Copy,
impl<S> StructuralPartialEq for Section<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for Section<S>where
S: RefUnwindSafe,
impl<S> Send for Section<S>where
S: Send,
impl<S> Sync for Section<S>where
S: Sync,
impl<S> Unpin for Section<S>where
S: Unpin,
impl<S> UnwindSafe for Section<S>where
S: UnwindSafe,
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
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