mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-12-01 07:43:00 +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;
|