Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 600 Bytes

File metadata and controls

22 lines (14 loc) · 600 Bytes

Isaac Newton - Pixabay

Vector with TypeScript - Basic implementation

Simple implementation of Vector for Classical Mechanics applications using TypeScript as programming language and NodeJS as host-environment.

API

Method Description
calcModule Return the module of vector.

How to use

The source code is at directory src/, where you can edit and compile again to dist using the command tsc on Terminal/PowerShell.

Example of use

const vector = new Vector([1,1])
console.log(vector.calcModule())