1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-07-31 03:50:27 +02:00

return [0, 0, 0] when [0, 0, 0]

This commit is contained in:
Justin Lin
2022-05-09 18:13:34 +08:00
parent 8a9011422a
commit 997857b596

View File

@@ -10,6 +10,7 @@
function spherical_coordinate(point) = function spherical_coordinate(point) =
// mathematics [r, theta, phi] // mathematics [r, theta, phi]
point == [0, 0, 0] ? [0, 0, 0] :
let(r = norm(point)) let(r = norm(point))
[ [
r, r,