Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
rle-classify
Advanced tools
Primitive intersection routines (point, ray, line segment, etc.) for narrowband level sets
This library implements basic geometric queries for narrowband level sets, specifically point and raycasting queries.
You can install the library using npm:
npm install rle-classify
And then use it to do basic primitive classification tests:
//First create a level set
var bunny = require("rle-rasterize")(require("bunny"));
//Then do a ray-query
var ray_hit = require("rle-classify").ray(bunny, [10, 0, 0], [-1, 0, 0]);
console.log("Ray hit info:", ray_hit);
//Point test
var point_phase = require("rle-classify").point(bunny, [0,0,0]);
console.log("Point info:", point_phase);
classify.ray(volume, origin, direction[, solid_func])
Casts a ray against the level set. This takes about O(ray.length * log(volume.length())).
volume
is a narrowband level setorigin
is the origin of the raydirection
is the ray directionsolid_func
tests if the volume is solid or notReturns a hit record containing the following properties:
hit
: A boolean flag that checks if the ray hit the volumex
: The point of intersectiont
: The the time of intersectionphase
: The phase of the volume at the point of intersectionclassify.point(volume, point)
Tests a point against the level set. This takes O(log(volume.length())) time.
volume
is a narrowband level setpoint
is the point to test againstReturns the phase of the level set at point
(c) 2013 Mikola Lysenko. BSD
FAQs
Primitive intersection routines (point, ray, line segment, etc.) for narrowband level sets
The npm package rle-classify receives a total of 0 weekly downloads. As such, rle-classify popularity was classified as not popular.
We found that rle-classify 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.