mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-24 06:43:01 +00:00
17 lines
346 B
JavaScript
17 lines
346 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, in_colour) {
|
|
this.point = in_point;
|
|
this.polygon = null;
|
|
this.colour = in_colour;
|
|
}
|
|
}
|
|
|
|
export default VoronoiCell;
|