Struct boostvoronoi::Edge [−][src]
pub struct Edge { /* fields omitted */ }
Expand description
Half-edge data structure. Represents a Voronoi edge.
Data members:
- id of the corresponding cell
- id of to the vertex that is the starting point of the half-edge (optional)
- id of to the twin edge
- id of of the CCW next edge
- id of to the CCW prev edge
- mutable color member
Implementations
Returns the cell index of this edge, or a BvError
Returns vertex0, it is perfectly ok for an edge to not contain a vertex0 so no Result<..> is needed here.
returns the next edge (counter clockwise winding) or an error
returns the previous edge (counter clockwise winding)
Returns true if the edge is linear (segment, ray, line). Returns false if the edge is curved (parabolic arc).
Returns true if the edge is curved (parabolic arc). Returns false if the edge is linear (segment, ray, line).
Returns false if edge goes through the endpoint of the segment. Returns true else.
Returns true if edge goes through the endpoint of the segment. Returns false else.
get_color returns the custom edge info. (does not contain the reserved bits)
set_color sets the custom edge info. (does not affect the reserved bits)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Edge
impl UnwindSafe for Edge
Blanket Implementations
Mutably borrows from an owned value. Read more