Point2D Class

The Point2D class can be used represent 2D points.

Here is how the Point2D constructor looks:

export class Point2D {
    constructor(x, y) {
        this.x = x;
        this.y = y;
    }   
}

Last updated