pub struct Vertex {
pub position: Point2,
pub outgoing: Option<HalfEdgeId>,
}Expand description
A point in the plane, with one outgoing half-edge as an entry into the edges around it.
Fields§
§position: Point2Where the vertex is.
outgoing: Option<HalfEdgeId>Any half-edge whose origin is this vertex, or None if isolated.
Isolated vertices are legal: an edit can remove the last edge touching a vertex without the vertex itself becoming invalid.
Trait Implementations§
impl Copy for Vertex
impl StructuralPartialEq for Vertex
Auto Trait Implementations§
impl Freeze for Vertex
impl RefUnwindSafe for Vertex
impl Send for Vertex
impl Sync for Vertex
impl Unpin for Vertex
impl UnwindSafe for Vertex
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