Simple implementation of Vector for Classical Mechanics applications using TypeScript as programming language and NodeJS as host-environment.
Method | Description |
---|---|
calcModule | Return the module of vector. |
The source code is at directory src/
, where you can edit and compile again to dist
using the command tsc
on Terminal/PowerShell.
const vector = new Vector([1,1])
console.log(vector.calcModule())