New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eturnity/eturnity_maths

Package Overview
Dependencies
Maintainers
5
Versions
443
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eturnity/eturnity_maths - npm Package Compare versions

Comparing version 6.37.0-EPDM-7379.0 to 6.37.0-EPDM-7379.1

2

package.json
{
"name": "@eturnity/eturnity_maths",
"version": "6.37.0-EPDM-7379.0",
"version": "6.37.0-EPDM-7379.1",
"author": "Eturnity Team",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -13,2 +13,3 @@ import {

normalizeVector} from './vector'
import {inverse3x3matrix} from './matrix'
import {Point} from './objects/Point'

@@ -95,2 +96,20 @@ import {Line} from './objects/Line'

}
export function getDataAboutTwo3DLines(A,u,B,v){
let w=crossProduct(u,v)
let m=[
[u.x,u.y,u.z],
[v.x,v.y,v.z],
[w.x,w.y,w.z]
]
let mInv=inverse3x3matrix(m)
console.log(multiplyMatrices(m,mInv))
let AB=substractVector(B,A)
let [t1,t2,t3] = multiplyMatrices(mInv,AB)
let M=addVector(A,multiplyVector(t1,u))
let N=addVector(B,multiplyVector(t2,v))
let distance=getDistanceBetween3DPoints(M,N)
return {M,N,w,distance}
}
export function vectorFromAngleInDegCanvas(angle) {

@@ -109,2 +128,10 @@ return {

}
export function getDistanceBetween3DPoints(firstPoint, secondPoint) {
const distance = Math.hypot(
firstPoint.x - secondPoint.x,
firstPoint.y - secondPoint.y,
firstPoint.z - secondPoint.z,
)
return distance
}

@@ -111,0 +138,0 @@ export function getDegree(H, I, J) {

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