pub struct Polyhedron { /* private fields */ }Expand description
A polyhedron count summary.
Implementations§
Source§impl Polyhedron
impl Polyhedron
Sourcepub const fn from_counts(
vertex_count: usize,
edge_count: usize,
face_count: usize,
) -> Option<Self>
pub const fn from_counts( vertex_count: usize, edge_count: usize, face_count: usize, ) -> Option<Self>
Creates a polyhedron from positive vertex, edge, and face counts.
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 face count.
Sourcepub const fn euler_characteristic(self) -> isize
pub const fn euler_characteristic(self) -> isize
Returns V - E + F.
Trait Implementations§
Source§impl Clone for Polyhedron
impl Clone for Polyhedron
Source§fn clone(&self) -> Polyhedron
fn clone(&self) -> Polyhedron
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 Polyhedron
impl Debug for Polyhedron
Source§impl PartialEq for Polyhedron
impl PartialEq for Polyhedron
impl Copy for Polyhedron
impl Eq for Polyhedron
impl StructuralPartialEq for Polyhedron
Auto Trait Implementations§
impl Freeze for Polyhedron
impl RefUnwindSafe for Polyhedron
impl Send for Polyhedron
impl Sync for Polyhedron
impl Unpin for Polyhedron
impl UnsafeUnpin for Polyhedron
impl UnwindSafe for Polyhedron
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