pub struct RegularPolygon { /* private fields */ }Expand description
A regular polygon descriptor.
Implementations§
Source§impl RegularPolygon
impl RegularPolygon
Sourcepub const fn new(side_count: usize, circumradius: f64) -> Option<Self>
pub const fn new(side_count: usize, circumradius: f64) -> Option<Self>
Creates a regular polygon with at least three sides and positive finite circumradius.
Sourcepub const fn side_count(self) -> usize
pub const fn side_count(self) -> usize
Returns the side count.
Sourcepub const fn circumradius(self) -> f64
pub const fn circumradius(self) -> f64
Returns the circumradius.
Sourcepub fn schlafli_symbol(self) -> SchlafliSymbol
pub fn schlafli_symbol(self) -> SchlafliSymbol
Returns the Schlafli symbol {p}.
Trait Implementations§
Source§impl Clone for RegularPolygon
impl Clone for RegularPolygon
Source§fn clone(&self) -> RegularPolygon
fn clone(&self) -> RegularPolygon
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegularPolygon
impl Debug for RegularPolygon
Source§impl PartialEq for RegularPolygon
impl PartialEq for RegularPolygon
impl Copy for RegularPolygon
impl StructuralPartialEq for RegularPolygon
Auto Trait Implementations§
impl Freeze for RegularPolygon
impl RefUnwindSafe for RegularPolygon
impl Send for RegularPolygon
impl Sync for RegularPolygon
impl Unpin for RegularPolygon
impl UnsafeUnpin for RegularPolygon
impl UnwindSafe for RegularPolygon
Blanket Implementations§
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