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

@eturnity/eturnity_maths

Package Overview
Dependencies
Maintainers
4
Versions
427
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.28.0-EPDM-7478.2 to 6.28.0-EPDM-7478.3

2

package.json
{
"name": "@eturnity/eturnity_maths",
"version": "6.28.0-EPDM-7478.2",
"version": "6.28.0-EPDM-7478.3",
"author": "Eturnity Team",

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

@@ -78,5 +78,4 @@ import {

let angle = Math.round(
(Math.acos((a * a + b * b - c * c) / (2 * a * b)) * 180) / Math.PI
)
let angle = (Math.acos((a * a + b * b - c * c) / (2 * a * b)) * 180) / Math.PI
//if 3 points are aligned

@@ -86,2 +85,5 @@ if (isNaN(angle)) {

}
let sgn=-Math.sign(crossProduct(substractVector(H,I),substractVector(J,I)).z)
angle=sgn*angle
return angle

@@ -88,0 +90,0 @@ }

@@ -57,4 +57,4 @@ import { substractVector } from "./vector"

let rotationMatrix=[[Math.cos(angle),Math.sin(angle)],[-Math.sin(angle),Math.cos(angle)]]
let k=multiplyMatrices(rotationMatrix,[point.x-center.x,point.y-center.y])
return {x:k[0]+center.x,y:k[1]+center.y}
let k=multiplyMatrices(rotationMatrix,[[point.x-center.x],[point.y-center.y]])
return {x:k[0][0]+center.x,y:k[1][0]+center.y}
}
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