Table of Contents

Struct VoronoiCell

Namespace
SpatialNET
Assembly
SpatialNET.Extensions.dll

The cell of one site of a Voronoi diagram (ADR 0036).

public readonly record struct VoronoiCell : IEquatable<VoronoiCell>

Implements

Inherited Members

Constructors

VoronoiCell(Coordinate, IPolygon2D)

The cell of one site of a Voronoi diagram (ADR 0036).

public VoronoiCell(Coordinate Site, IPolygon2D Cell)

Parameters

Site Coordinate

The site, with its Z if it has one.

Cell IPolygon2D

The part of the clip area that lies nearer to Site than to every other site; empty if the cell does not reach the clip area (a site far outside it) or collapses at the size of the grid (sites closer together than that).

Properties

Cell

The part of the clip area that lies nearer to Site than to every other site; empty if the cell does not reach the clip area (a site far outside it) or collapses at the size of the grid (sites closer together than that).

public IPolygon2D Cell { get; init; }

Property Value

IPolygon2D

Site

The site, with its Z if it has one.

public Coordinate Site { get; init; }

Property Value

Coordinate