mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 18:24:28 +02:00
refactor: acos
This commit is contained in:
@@ -10,8 +10,9 @@
|
|||||||
|
|
||||||
function spherical_coordinate(point) =
|
function spherical_coordinate(point) =
|
||||||
// mathematics [r, theta, phi]
|
// mathematics [r, theta, phi]
|
||||||
|
let(r = norm(point))
|
||||||
[
|
[
|
||||||
norm(point),
|
norm(point),
|
||||||
atan2(point.y, point.x),
|
atan2(point.y, point.x),
|
||||||
atan2(norm([point.x, point.y]), point.z)
|
acos(point.z / r)
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user