Struct boostvoronoi::Edge[][src]

pub struct Edge { /* fields omitted */ }
Expand description

Half-edge data structure. Represents a Voronoi edge.

Data members:

  1. id of the corresponding cell
  2. id of to the vertex that is the starting point of the half-edge (optional)
  3. id of to the twin edge
  4. id of of the CCW next edge
  5. id of to the CCW prev edge
  6. mutable color member

Implementations

Returns the edge index

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 twin edge or an error

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)

or_color sets the custom edge info together with the previous value. (does not affect the reserved bits)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.