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
429
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.31.1 to 6.32.0-EPDM-7373.0

2

package.json
{
"name": "@eturnity/eturnity_maths",
"version": "6.31.1",
"version": "6.32.0-EPDM-7373.0",
"author": "Eturnity Team",

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

@@ -24,3 +24,3 @@ import {

}
export function updateOutlineFromInclineDirection(incline, direction, outline,initialAverageHeight) {
export function updateOutlineFromInclineDirection(incline, direction, outline,initialAverageHeight,isRoofOnRoof = false) {
const newNormalVector = {}

@@ -33,3 +33,2 @@ newNormalVector.x =

let meanPoint = meanVector(outline)
let minAltitude=Math.min(...outline.map(p=>p.z))
meanPoint.z=initialAverageHeight

@@ -40,4 +39,12 @@ let newOutline = outline.map((p) => {

//if some points are with negative altitude, we offset the whole roof
const newMinAltitude = Math.min(...newOutline.map((p) => p.z))
let altitudeOffset=newMinAltitude-minAltitude
let altitudeOffset
let minAltitude=Math.min(...outline.map(p=>p.z))
let maxAltitude=Math.max(...outline.map(p=>p.z))
let newMinAltitude = Math.min(...newOutline.map((p) => p.z))
let newMaxAltitude = Math.max(...newOutline.map((p) => p.z))
if(isRoofOnRoof && maxAltitude!=0){
altitudeOffset=newMaxAltitude-maxAltitude
}else{
altitudeOffset=newMinAltitude-minAltitude
}
newOutline.forEach((p) => (p.z -= altitudeOffset))

@@ -44,0 +51,0 @@

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