Struct boostvoronoi::Cell[][src]

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

Represents a Voronoi cell.

Data members:

  1. index of the source within the initial input set
  2. id of the incident edge
  3. mutable color member Cell may contain point or segment site inside.

Implementations

Returns true if the cell contains point site, false else.

Returns true if the cell contains segment site, false otherwise.

Returns true if the cell contains segment start point, false otherwise.

Returns true if the cell contains segment end point, false otherwise.

Returns the origin index of the cell.

Returns the origin index of the point that created this cell. It also returns the source category

Degenerate cells don’t have any incident edges.

returns a random edge defined by this cell.

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 #41263)

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.