pub struct Vertex<Proj> { /* private fields */ }Expand description
Represents a vertex on a HexSphere.
Implementations§
Trait Implementations§
Source§impl<Proj: Eq + Clone + BaseTriProjector> Vertex for Vertex<Proj>
impl<Proj: Eq + Clone + BaseTriProjector> Vertex for Vertex<Proj>
Source§fn index(&self) -> usize
fn index(&self) -> usize
The index of this vertex within the
Sphere::vertices list.Source§fn degree(&self) -> usize
fn degree(&self) -> usize
The number of edges (or equivalently,
Faces) that are connected to this vertex.Source§fn outgoing(&self, index: usize) -> HalfEdge<Proj>
fn outgoing(&self, index: usize) -> HalfEdge<Proj>
Gets an outgoing
HalfEdge based on its index within the Vertex::outgoings list.Source§fn face(&self, index: usize) -> Self::Face
fn face(&self, index: usize) -> Self::Face
Gets a connected
Face based on its index within the Vertex::faces list.impl<Proj: Copy> Copy for Vertex<Proj>
impl<Proj: Eq> Eq for Vertex<Proj>
impl<Proj> StructuralPartialEq for Vertex<Proj>
Auto Trait Implementations§
impl<Proj> Freeze for Vertex<Proj>where
Proj: Freeze,
impl<Proj> RefUnwindSafe for Vertex<Proj>where
Proj: RefUnwindSafe,
impl<Proj> Send for Vertex<Proj>where
Proj: Send,
impl<Proj> Sync for Vertex<Proj>where
Proj: Sync,
impl<Proj> Unpin for Vertex<Proj>where
Proj: Unpin,
impl<Proj> UnwindSafe for Vertex<Proj>where
Proj: UnwindSafe,
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