Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
change-mat4-coordinate-system
Advanced tools
Convert a 4x4 column major matrix from left handed to right handed coordinate system
Convert a 4x4 column major matrix from left handed to right handed coordinate system
Blender exports bone matrices in using a handed coordinate system, but WebGL uses a left handed coordinate system.
I used to know change coordinate systems by changing my final gl_Position
's coordinates, but I now need to manipulate
coordinates before I get to my vertex shader (to find the location and rotation of a bone so that I can render something
on top of it).
This module helps me with converting everything to left handed during compile time, so that I don't need to do any
coordinate system conversion during runtime.
$ npm install --save change-mat4-coordinate-system
var changeMat4Coords = require('change-mat4-coordinate-system')
// Don't worry, both rotations and translations will be converted.
// It's just easier to demonstrate translations here.
var rightHandedMatrix = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 5, 1, 1]
var leftHandedMatrix = changeMat4Coords.rightToLeft(rightHandedMatrix)
console.log(leftHandedMatrix)
// [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, -5, 1]
MIT
FAQs
Convert a 4x4 column major matrix from left handed to right handed coordinate system
The npm package change-mat4-coordinate-system receives a total of 0 weekly downloads. As such, change-mat4-coordinate-system popularity was classified as not popular.
We found that change-mat4-coordinate-system 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.