Point.js 158 B

1234567891011
  1. export class Point {
  2. constructor(x, y){
  3. this.x = x;
  4. this.y = y;
  5. }
  6. scale(x, y) {
  7. this.x *= x;
  8. this.y *= y;
  9. }
  10. }