pub struct Polytope { /* private fields */ }Expand description
A small n-dimensional polytope descriptor.
Implementations§
Source§impl Polytope
impl Polytope
Sourcepub const fn new(
dimension: usize,
vertex_count: usize,
facet_count: usize,
) -> Option<Self>
pub const fn new( dimension: usize, vertex_count: usize, facet_count: usize, ) -> Option<Self>
Creates a polytope descriptor with positive dimension and counts.
Sourcepub const fn vertex_count(self) -> usize
pub const fn vertex_count(self) -> usize
Returns the vertex count.
Sourcepub const fn facet_count(self) -> usize
pub const fn facet_count(self) -> usize
Returns the facet count.
Trait Implementations§
impl Copy for Polytope
impl Eq for Polytope
impl StructuralPartialEq for Polytope
Auto Trait Implementations§
impl Freeze for Polytope
impl RefUnwindSafe for Polytope
impl Send for Polytope
impl Sync for Polytope
impl Unpin for Polytope
impl UnsafeUnpin for Polytope
impl UnwindSafe for Polytope
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