File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Point {
77
}
88
}
99

10-
class Polygone {
10+
class Polygon {
1111
constructor(...points) {
1212
this.points = points;
1313
}
@@ -17,7 +17,7 @@ class Polygone {
1717
}
1818
}
1919

20-
class Rect extends Polygone {
20+
class Rect extends Polygon {
2121
constructor(x1, y1, x2, y2) {
2222
const a = new Point(x1, y1);
2323
const b = new Point(x2, y1);
@@ -27,7 +27,7 @@ class Rect extends Polygone {
2727
}
2828
}
2929

30-
class Triangle extends Polygone {
30+
class Triangle extends Polygon {
3131
constructor(x1, y1, x2, y2, x3, y3) {
3232
const a = new Point(x1, y1);
3333
const b = new Point(x2, y2);
@@ -37,8 +37,8 @@ class Triangle extends Polygone {
3737
}
3838

3939
class Geometry {
40-
static rotate(polygone, angle) {
41-
const { points } = polygone;
40+
static rotate(polygon, angle) {
41+
const { points } = polygon;
4242
const radians = Math.PI / 180 * angle;
4343
const sin = Math.sin(radians);
4444
const cos = Math.cos(radians);

0 commit comments

Comments
 (0)