Struct Polyhedron
pub struct Polyhedron { /* private fields */ }Expand description
A polyhedron count summary.
Implementations§
§impl Polyhedron
impl Polyhedron
pub const fn from_counts(
vertex_count: usize,
edge_count: usize,
face_count: usize,
) -> Option<Polyhedron>
pub const fn from_counts( vertex_count: usize, edge_count: usize, face_count: usize, ) -> Option<Polyhedron>
Creates a polyhedron from positive vertex, edge, and face counts.
pub const fn vertex_count(self) -> usize
pub const fn vertex_count(self) -> usize
Returns the vertex count.
pub const fn edge_count(self) -> usize
pub const fn edge_count(self) -> usize
Returns the edge count.
pub const fn face_count(self) -> usize
pub const fn face_count(self) -> usize
Returns the face count.
pub const fn euler_characteristic(self) -> isize
pub const fn euler_characteristic(self) -> isize
Returns V - E + F.
Trait Implementations§
§impl Clone for Polyhedron
impl Clone for Polyhedron
§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 more§impl Debug for Polyhedron
impl Debug for Polyhedron
§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