
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
3D vector math with robust unit tests.
var v = require('vec3');
var v1 = v(1, 2, 3);
console.log(v1); // prints "(1, 2, 3)"
var v2 = v1.offset(0, 0, 1);
console.log(v2); // prints "(1, 2, 4)"
Or:
var Vec3 = require('vec3').Vec3;
var v1 = new Vec3(1, 2, 3);
// etc...
More available functions are listed below in Test Coverage.
v()
✓ no args
✓ x, y, z
✓ array
✓ object
vec3
✓ floored
✓ floor
✓ offset
✓ translate
✓ plus
✓ minus
✓ scaled
✓ abs
✓ distanceTo
✓ equals
✓ toString
✓ clone
✓ add
✓ subtract
✓ set
✓ modulus
✓ volume
✓ min
✓ max
21 tests complete
More functions welcome in the form of pull requests.
FAQs
3d vector math with good unit tests
The npm package vec3 receives a total of 0 weekly downloads. As such, vec3 popularity was classified as not popular.
We found that vec3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.