
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
triangle-normal
Advanced tools
Takes a list of vertices in a triangle, and returns the normal vector for that triangle. Doesn't handle degenerate triangles.
require('triangle-normal')(vertices..., [output])The first 9 arguments are for the points on your triangle, with an optional
output array to set the resulting parameters. If an ouput is not supplied,
a new array will be created, and either way this array will be returned as the
result of the function, e.g.:
var normal = require('triangle-normal')
var output = [0, 0, 0]
var vectors = [
{ x: 0, y: 0, z: 0 }
, { x: 1, y: 0, z: 0 }
, { x: 0, y: 1, z: 0 }
]
normal(
vectors[0].x, vectors[0].y, vectors[0].z,
vectors[1].x, vectors[1].y, vectors[1].z,
vectors[2].x, vectors[2].y, vectors[2].z,
output
)
FAQs
Get the normal vector of a 3D triangle
We found that triangle-normal 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.