Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ray-geom-intersections

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ray-geom-intersections

generate array of intersection points from array and geometry

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ray-geom-intersections

Provide all intersection points from a given geometry and ray.

Installation

$ npm i -S ray-geom-intersections

Usage

const intersections = require('geom-ray-intersections')
const result = intersections([], rayOrigin, rayDirection, vertices, triangles)
// input:
// - out
// - rayOrigin, where your ray starts from (e.g. [0, 0, 0])
// - rayDirection, where it points to (e.g. [0, 1, 0])
// - vertices is an array of [x, y, z], the geometry vertices
// - triangles is an array of [i, j, k], the geometry triangles
// output:
// - result is an array of [x, y, z], the points of intersection ordered by distance (closest first)

License

MIT

Keywords

FAQs

Package last updated on 04 Nov 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc