
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
quaternionjs
Advanced tools
a simple API for creating an manipulating quaternions which are useful in 3D graphics involving rotations.
to use in the browser, just include <script src="quaternion.js"></script>
for use in node, just run npm install quaternionjs
Here's a small demo
var quaternion = require('quaternionjs')
var q = quaternion()
.fromAxis({x: 1, y: 0, z: 0}, theta)
.multi(quaternion().fromAxis({x: 0, y: 1, z: 0}, theta))
.multi(quaternion().fromAxis({x: 0, y: 0, z: 1}, theta))
// rotate all the points in `points` along the x, y, and z axis
return points.slice(0).map(q.multiVec)
checkout example/index.html for an demo or have a gander at the source code.
FAQs
A simple API for working with quaternions. useful for 3d rotations
The npm package quaternionjs receives a total of 3 weekly downloads. As such, quaternionjs popularity was classified as not popular.
We found that quaternionjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.