@eturnity/eturnity_maths
Advanced tools
Comparing version 6.34.3-EPDM-8157.2 to 6.34.3-EPDM-8157.3
{ | ||
"name": "@eturnity/eturnity_maths", | ||
"version": "6.34.3-EPDM-8157.2", | ||
"version": "6.34.3-EPDM-8157.3", | ||
"author": "Eturnity Team", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -39,2 +39,4 @@ | ||
point.z=verticalProjectionOnPlane(point,this.normalVector,this.center).z | ||
}else{ | ||
point.z=this.center.z | ||
} | ||
@@ -50,3 +52,3 @@ return Math.abs(get3DDistanceBetweenPoints(point, pxCenter) - pxRadius) | ||
let distance = get3DDistanceBetweenPoints(point, this.center) | ||
if (distance == 0) { | ||
if (distance == 0) { | ||
console.error("can't project center to cercle", this) | ||
@@ -53,0 +55,0 @@ return null |
99939
3117