1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 17:54:18 +02:00

refactor: acos

This commit is contained in:
Justin Lin
2022-04-24 16:46:22 +08:00
parent a8dd6c1af8
commit 68827f41cf

View File

@@ -10,8 +10,9 @@
function spherical_coordinate(point) =
// mathematics [r, theta, phi]
let(r = norm(point))
[
norm(point),
atan2(point.y, point.x),
atan2(norm([point.x, point.y]), point.z)
acos(point.z / r)
];