@eturnity/eturnity_maths
Advanced tools
Comparing version 7.42.2-EPDM-12619.2 to 7.42.2-EPDM-12619.3
{ | ||
"name": "@eturnity/eturnity_maths", | ||
"version": "7.42.2-EPDM-12619.2", | ||
"version": "7.42.2-EPDM-12619.3", | ||
"author": "Eturnity Team", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -18,3 +18,16 @@ import { mmTolerance, polygonCloseTolerance } from './config' | ||
import { isSelfIntersecting } from './intersectionPolygon' | ||
export function get3DPolylineLength(outline) { | ||
return outline.reduce((acc, cur, i) => { | ||
return ( | ||
acc + get3DDistanceBetweenPoints(cur, outline[(i + 1) % outline.length]) | ||
) | ||
}, 0) | ||
} | ||
export function getPolylineLength(outline) { | ||
return outline.reduce((acc, cur, i) => { | ||
return ( | ||
acc + getDistanceBetweenPoints(cur, outline[(i + 1) % outline.length]) | ||
) | ||
}, 0) | ||
} | ||
export function getConcaveOutlines(selectedPanels, onePanelOutline) { | ||
@@ -21,0 +34,0 @@ let buckets = groupAdjacentObjects(selectedPanels) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
214625
7314