mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 17:54:18 +02:00
refactor: acos
This commit is contained in:
@@ -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)
|
||||
];
|
||||
|
Reference in New Issue
Block a user