mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-01 04:20:27 +02:00
return [0, 0, 0] when [0, 0, 0]
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
function spherical_coordinate(point) =
|
||||
// mathematics [r, theta, phi]
|
||||
point == [0, 0, 0] ? [0, 0, 0] :
|
||||
let(r = norm(point))
|
||||
[
|
||||
r,
|
||||
|
Reference in New Issue
Block a user