@chemistry/math
TypeScript icon, indicating that this package has built-in type declarations

2.9.0 • Public • Published

@chemistry/math

npm version Build Status codecov License: MIT

Simple linear algebra Math library to support chemistry js project

Install

npm install @chemistry/math

Include following clases:

  • Vec3
  • Matrix3x3
  • Matrix3x4
  • Transform3d
  • Quaternion

Getting started:

import { V, ChemElementData } from '@chemistry/math';
const matrix = new Matrix3x3([1, 0, 0,  0, 2, 0,  0, 0, 3]);
const vector = new Vec3(2, 3, 1);

const res = matrix.project(vector);
// (2.00, 6.00, 3.00)
console.log(res);

Commands:

  • Build project: npm run build

Package Sidebar

Install

npm i @chemistry/math

Weekly Downloads

18

Version

2.9.0

License

MIT

Unpacked Size

113 kB

Total Files

13

Last publish

Collaborators

  • vreshch