Struct Tetrahedron
pub struct Tetrahedron { /* private fields */ }Expand description
A 3-simplex in 3D space.
Implementations§
§impl Tetrahedron
impl Tetrahedron
pub const fn new(vertices: [Vector<3>; 4]) -> Tetrahedron
pub const fn new(vertices: [Vector<3>; 4]) -> Tetrahedron
Creates a tetrahedron from four vertices.
pub const fn vertex_count(self) -> usize
pub const fn vertex_count(self) -> usize
Returns the vertex count.
Trait Implementations§
§impl Clone for Tetrahedron
impl Clone for Tetrahedron
§fn clone(&self) -> Tetrahedron
fn clone(&self) -> Tetrahedron
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 Tetrahedron
impl Debug for Tetrahedron
§impl PartialEq for Tetrahedron
impl PartialEq for Tetrahedron
impl Copy for Tetrahedron
impl StructuralPartialEq for Tetrahedron
Auto Trait Implementations§
impl Freeze for Tetrahedron
impl RefUnwindSafe for Tetrahedron
impl Send for Tetrahedron
impl Sync for Tetrahedron
impl Unpin for Tetrahedron
impl UnsafeUnpin for Tetrahedron
impl UnwindSafe for Tetrahedron
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