The Point2D class can be used represent 2D points.
Point2D
Here is how the Point2D constructor looks:
export class Point2D { constructor(x, y) { this.x = x; this.y = y; } }
Last updated 3 months ago