pub enum RegularPolytope4 {
FiveCell,
Tesseract,
SixteenCell,
TwentyFourCell,
SixHundredCell,
OneHundredTwentyCell,
}Expand description
The six convex regular four-dimensional polytopes.
Variants§
FiveCell
The 5-cell.
Tesseract
The tesseract.
SixteenCell
The 16-cell.
TwentyFourCell
The 24-cell.
SixHundredCell
The 600-cell.
OneHundredTwentyCell
The 120-cell.
Implementations§
Source§impl RegularPolytope4
impl RegularPolytope4
Sourcepub const fn vertex_count(self) -> usize
pub const fn vertex_count(self) -> usize
Returns the vertex count.
Sourcepub const fn edge_count(self) -> usize
pub const fn edge_count(self) -> usize
Returns the edge count.
Sourcepub const fn face_count(self) -> usize
pub const fn face_count(self) -> usize
Returns the two-dimensional face count.
Sourcepub const fn cell_count(self) -> usize
pub const fn cell_count(self) -> usize
Returns the three-dimensional cell count.
Sourcepub fn schlafli_symbol(self) -> SchlafliSymbol
pub fn schlafli_symbol(self) -> SchlafliSymbol
Returns the Schlafli symbol.
Trait Implementations§
Source§impl Clone for RegularPolytope4
impl Clone for RegularPolytope4
Source§fn clone(&self) -> RegularPolytope4
fn clone(&self) -> RegularPolytope4
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 RegularPolytope4
impl Debug for RegularPolytope4
Source§impl PartialEq for RegularPolytope4
impl PartialEq for RegularPolytope4
impl Copy for RegularPolytope4
impl Eq for RegularPolytope4
impl StructuralPartialEq for RegularPolytope4
Auto Trait Implementations§
impl Freeze for RegularPolytope4
impl RefUnwindSafe for RegularPolytope4
impl Send for RegularPolytope4
impl Sync for RegularPolytope4
impl Unpin for RegularPolytope4
impl UnsafeUnpin for RegularPolytope4
impl UnwindSafe for RegularPolytope4
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