Skip to content

loktev-d/geometry-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started

To use geometry-lib you need to import main.ts file into your project.

import { circle, triangle, rectangle } from "./main";

Here's a small example using it:

let c1 = new circle(5);
let t1 = new triangle([3, 4, 5]);
let t2 = new triangle([3, 4, 5]);
let r1 = new rectangle(10, 30);
console.log(r1.equals(c1));
console.log(r1.edges);
console.log(r1.getArea());
console.log(r1.getPerimeter());

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published