Fix for intersection issue

This commit is contained in:
Knut Sveidqvist
2024-11-08 13:47:39 +01:00
parent c218e365bd
commit 757627427b
2 changed files with 48 additions and 13 deletions

View File

@@ -125,7 +125,7 @@ export async function tiltedCylinder<T extends SVGGraphicsElement>(
) {
let x = rx * rx * (1 - (y * y) / (ry * ry));
if (x != 0) {
x = Math.sqrt(x);
x = Math.sqrt(Math.abs(x));
}
x = rx - x;
if (point.x - (node.x ?? 0) > 0) {