1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 10:14:41 +02:00

multify directly

This commit is contained in:
Justin Lin
2019-06-12 08:20:16 +08:00
parent c31145be3b
commit e1985e85b0

View File

@@ -3,6 +3,6 @@ function __angy_angz(p1, p2) =
dx = p2[0] - p1[0],
dy = p2[1] - p1[1],
dz = p2[2] - p1[2],
ya = atan2(dz, sqrt(pow(dx, 2) + pow(dy, 2))),
ya = atan2(dz, sqrt(dx * dx + dy * dy)),
za = atan2(dy, dx)
) [ya, za];