New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@chemistry/math

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chemistry/math

Math support for @chemistry project

latest
Source
npmnpm
Version
3.1.3
Version published
Maintainers
1
Created
Source

@chemistry/math

npm

Linear algebra library for 3D chemistry — vectors, matrices, quaternions, and transforms.

Installation

npm install @chemistry/math

Usage

import { Vec3, Matrix3x3, Quaternion, Transform3D } from '@chemistry/math';

const v = new Vec3(1, 2, 3);
const normalized = v.normalize();

const m = Matrix3x3.identity();
const transformed = m.multiplyVec3(v);

const q = new Quaternion(0, 0, 0, 1);
const rotated = q.rotate(v);

Features

  • Vec2 / Vec3 — 2D and 3D vector operations
  • Matrix3x3 / Matrix3x4 — matrix operations and transformations
  • Quaternion — quaternion math for rotations
  • Transform3D — combined translation, rotation, and scale
  • Isomorphic — works in Node.js and browsers

License

MIT

Keywords

cheminformatics

FAQs

Package last updated on 27 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts