Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • VoronoiCell

Index

Constructors

constructor

Properties

sharedVertex

sharedVertex: Vertex
member

{Vertex} sharedVertex

memberof

VoronoiCell

instance

triangles

triangles: Array<Triangle>
member

{Array} triangles

memberof

VoronoiCell

instance

Methods

isOpen

  • isOpen(): boolean

toPathArray

  • toPathArray(): Array<Vertex>

toPathSVGString

  • toPathSVGString(): string

toPolygon

  • Convert this Voronoi cell to a path polygon, consisting of all Voronoi cell corner points.

    Note that open Voronoi cell cannot properly converted to Polygons as they are considered infinite. 'Open' Voronoi edges will be cut off at their innermose vertices.

    method

    toPolygon

    instance
    memberof

    VoronoiCell

    Returns Polygon

Static Private _calcOpenEdgePoint

  • A helper function.

    Calculate the 'infinite' open edge point based on the open path triangle 'tri' and its neighbour 'neigh'.

    This function is used to determine outer hull points.

    method

    _calcOpenEdhePoint

    static
    instance
    memberof

    VoronoiCell

    Parameters

    Returns Vertex

Static Private _findOuterEdgePoint

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Private property
  • Private method
  • Static property
  • Static method

Generated using TypeDoc