js3d
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Js3D

A 3D Math Library for JavaScript. Js3D was built for high performance math computing. Many of JS features is not used due to performance issues.

Installation

Install Js3D with npm

  npm install js3d

Usage/Examples

import { Vec2, vec2_init, vec2_init2 } from 'js3d'

const point1 = new Vec2;
vec2_init(point1, 2.0);

const point2 = new Vec2;
vec2_init2(point2, 2.0, 5.0);

const pointDistance = vec2_distance(v1, v2);

console.log(`The distance of these points is ${pointDistance}`)

Tech Stack

JavaScript, TypeScript

Author

Bruno Gallego - @bgsa

License

MIT License

Support

I am an independent software engineer with MSc in Computer Graphics (Engineering). You can support my libraries with buymeacoffee

Package Sidebar

Install

npm i js3d

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

65.8 kB

Total Files

30

Last publish

Collaborators

  • bgsa