mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-23 06:33:00 +00:00
16 lines
308 B
JavaScript
16 lines
308 B
JavaScript
"use strict";
|
|
|
|
import Vector2 from '../Helpers/Vector2.mjs';
|
|
|
|
/**
|
|
* Represents a single Voronoi diagram cell.
|
|
* @param {Vector2} point The point at which the cell is located.
|
|
*/
|
|
class VoronoiCell {
|
|
constructor(in_point) {
|
|
this.point = in_point;
|
|
this.polygon = null;
|
|
}
|
|
}
|
|
|
|
export default VoronoiCell;
|