gorhill / Javascript-Voronoi

A Javascript implementation of Fortune's algorithm to compute Voronoi cells
http://www.raymondhill.net/voronoi/
Other
1.02k stars 166 forks source link

Add ``Point`` as a public object in documentation #31

Closed alvarobyrne closed 8 years ago

alvarobyrne commented 8 years ago

Hi. Sites are characterized by points. And each point is (allow redundance) a Point which has id, xand y fileds. Point public object is then different from (documented) Vertex public object in that the latter doesn't have an id property/field. Isn't that a case? Isn't this the case? Thank you.

gorhill commented 8 years ago

I don't understand why the issue. Front page:

// a 'vertex' is an object exhibiting 'x' and 'y' properties. The
// Voronoi object will add a unique 'voronoiId' property to all
// sites. The 'voronoiId' can be used as a key to lookup the associated cell
// in diagram.cells.
alvarobyrne commented 8 years ago

Hi. Yes it's not an issue, just thought it would be more complete to say that sites are Point public objects in contrast to Vertex. Certainly not an issue: it is fine as it is.