@tomaso909/js3d
v1.7.0
Published
A lightweight 3D vector math library in ES6
Readme
JS3D Library
A lightweight library for 3D vector and point manipulation.
Installation
Clone the repository or copy the files into your project.
Usage
Import the Vector3d module:
import { Vector3d } from '@tomaso909/d3js';
const v1 = [1, 2, 3];
const v2 = [4, 5, 6];
console.log(Vector3d.add(v1, v2)); // [5, 7, 9]
console.log(Vector3d.length(v1)); // 3.7416573867739413