From 4084762ff13740faf542af6604432071c6394777 Mon Sep 17 00:00:00 2001 From: nieopierzony Date: Fri, 18 Feb 2022 21:13:58 +0300 Subject: [PATCH] Rename Geometry to Planimetrics (#2) --- JavaScript/8-geometry.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/JavaScript/8-geometry.js b/JavaScript/8-geometry.js index 619d49a..9325682 100644 --- a/JavaScript/8-geometry.js +++ b/JavaScript/8-geometry.js @@ -50,7 +50,7 @@ class Triangle extends Polygon { } } -class Geometry { +class Planimetrics { static rotate(polygon, angle) { const { points } = polygon; const radians = Math.PI / 180 * angle; @@ -71,14 +71,14 @@ console.log(rect); console.log(rect.area); console.log('Rotate 45'); -Geometry.rotate(rect, 45); +Planimetrics.rotate(rect, 45); console.log(rect); console.log(rect.area); const triangle = new Triangle(0, 0, 15, 0, 0, 15); console.log(triangle); console.log('Rotate 90'); -Geometry.rotate(triangle, 90); +Planimetrics.rotate(triangle, 90); console.log(triangle); console.log(triangle.area); console.log(`${triangle}`); 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