{"name":"vec3","version":"0.2.0","description":"3d vector math with good unit tests","main":"index.js","types":"index.d.ts","scripts":{"test":"npm run test-js && npm run test-types","test-js":"mocha --reporter spec","test-types":"tsd","pretest":"npm run lint","lint":"standard","fix":"standard --fix"},"keywords":["point"],"exports":{"types":"./index.d.ts","require":"./index.js","import":"./wrapper.mjs"},"author":{"name":"Andrew Kelley"},"license":"BSD","devDependencies":{"mocha":"^11.0.1","standard":"^17.0.0","tsd":"^0.25.0"},"dependencies":{},"tsd":{"directory":"test"},"repository":{"type":"git","url":"git+https://github.com/PrismarineJS/node-vec3.git"},"gitHead":"3d6b2dc99b78b7c6280ff13f8067bb2ccda7c4e2","_id":"vec3@0.2.0","bugs":{"url":"https://github.com/PrismarineJS/node-vec3/issues"},"homepage":"https://github.com/PrismarineJS/node-vec3#readme","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-jOjU4zbCNWOKOGLHop1I0J2Ar4h5Zz76455LJhJKhiOJwI21QP6d5TnKklNZDKG+c5h71zWtPAbd9wh+Va57OQ==","shasum":"44581d6eabf9188e1f6d803b02ac55b6406da75d","tarball":"http://registry-npm.ywwl.com/vec3/download/vec3-0.2.0.tgz","fileCount":13,"unpackedSize":36093,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vec3@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDMjzX8sAwWRxwGZztJ6nmZVKfWrWbZc8ONWlwiTUrXLgIgYv1Fd/84HejNnBOnX2ZPj7G0xwMxRdFeUTaAiYzRk2A="}],"size":8845,"noattachment":false,"key":"/vec3/-/vec3-0.2.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2a856033-d1ca-4898-96c2-a59a507a717e"}},"directories":{},"maintainers":[{"name":"rom1504","email":"romain.rom1@gmail.com"},{"name":"superjoe","email":"andrew@ziglang.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vec3_0.2.0_1774833509900_0.6576143084999169"},"_hasShrinkwrap":false,"readme":"# vec3\n\n[![NPM version](https://img.shields.io/npm/v/vec3.svg)](http://npmjs.com/package/vec3)\n[![Build Status](https://github.com/PrismarineJS/node-vec3/workflows/CI/badge.svg)](https://github.com/PrismarineJS/node-vec3/actions?query=workflow%3A%22CI%22)\n\n3D vector math with robust unit tests.\n\n## Usage\n\n```js\nvar v = require(\"vec3\");\n\nvar v1 = v(1, 2, 3);\nconsole.log(v1); // prints \"(1, 2, 3)\"\nvar v2 = v1.offset(0, 0, 1);\nconsole.log(v2); // prints \"(1, 2, 4)\"\n```\n\nOr:\n\n```js\nvar Vec3 = require(\"vec3\").Vec3;\n\nvar v1 = new Vec3(1, 2, 3);\n// etc...\n```\n\nMore available functions are listed below in Test Coverage.\n\n## Test Coverage\n\n```\n  v()\n    ✔ no args\n    ✔ x, y, z\n    ✔ array\n    ✔ object\n    ✔ string coords\n    ✔ deserialize\n    ✔ invalid deserialize\n\n  vec3\n    ✔ isZero\n    ✔ at\n    ✔ xz\n    ✔ xy\n    ✔ yz\n    ✔ xzy\n    ✔ rounded\n    ✔ round\n    ✔ floored\n    ✔ floor\n    ✔ offset\n    ✔ translate\n    ✔ plus\n    ✔ minus\n    ✔ scaled\n    ✔ abs\n    ✔ angleTo\n    ✔ distanceTo\n    ✔ distanceSquared\n    ✔ equals\n    ✔ toString\n    ✔ clone\n    ✔ add\n    ✔ subtract\n    ✔ multiply\n    ✔ divide\n    ✔ set\n    ✔ modulus\n    ✔ volume\n    ✔ min\n    ✔ max\n    ✔ update\n    ✔ norm\n    ✔ dot\n    ✔ cross\n    ✔ unit\n    ✔ normalize\n    ✔ scale\n    ✔ xyDistanceTo\n    ✔ xzDistanceTo\n    ✔ yzDistanceTo\n    ✔ innerProduct\n    ✔ manhattanDistanceTo\n    ✔ toArray\n\n  50 passing (14ms)\n```\n\nMore functions welcome in the form of pull requests.\n\n## History\n\nSee [History](HISTORY.md)\n","publish_time":1774833510088,"_cnpm_publish_time":1774833510088,"dist-tags":{"latest":"0.2.0"}}