Struct nannou::geom::ellipse::Section
[−]
[src]
pub struct Section<S = DefaultScalar> { pub ellipse: Ellipse<S>, pub offset_radians: S, pub section_radians: S, }
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.
Methods
impl<S> Section<S> where
S: BaseNum + Neg<Output = S>,
[src]
S: BaseNum + Neg<Output = S>,
ⓘImportant traits for Circumference<S>pub fn circumference(self) -> Circumference<S>
[src]
Produces an iterator yielding the points of the ellipse circumference.
impl<S> Section<S> where
S: BaseFloat,
[src]
S: BaseFloat,
ⓘImportant traits for Triangles<S>pub fn trangles(self) -> Triangles<S>
[src]
Produces an iterator yielding the triangles that describe the ellipse section.
TODO: Describe the order.
pub fn triangle_indices(&self) -> (TriangleVertices<S>, TriangleIndices)
[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 Section<S>
[src]
impl<S: Clone> Clone for Section<S>
[src]
fn clone(&self) -> Section<S>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for Section<S>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<S: PartialEq> PartialEq for Section<S>
[src]
fn eq(&self, __arg_0: &Section<S>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Section<S>) -> bool
[src]
This method tests for !=
.
impl<S: PartialOrd> PartialOrd for Section<S>
[src]
fn partial_cmp(&self, __arg_0: &Section<S>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Section<S>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Section<S>) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Section<S>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Section<S>) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more