Skip to content

Commit 78faf11

Browse files
committed
Fix typo
1 parent fa6315a commit 78faf11

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

JavaScript/8-geometry.js

Lines changed: 5 additions & 5 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy