From d7f328c65bff2d7107c9bdbe3370d4bea6492811 Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Mon, 17 May 2021 18:47:34 -0700 Subject: [PATCH] Revert "Update torus.lua" This reverts commit 35eeb918d0a7f3805b8bd58f2ccdeb19ecfe66d4. --- worldeditadditions/lib/torus.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldeditadditions/lib/torus.lua b/worldeditadditions/lib/torus.lua index 6648750..6b27f46 100644 --- a/worldeditadditions/lib/torus.lua +++ b/worldeditadditions/lib/torus.lua @@ -1,4 +1,4 @@ ---- Overlap command. Places a specified node on top of +--- Overlap command. Places a specified node on top of -- @module worldeditadditions.overlay --- Generates a torus shape at the given position with the given parameters. @@ -56,7 +56,7 @@ function worldeditadditions.torus(position, major_radius, minor_radius, target_n -- Where: -- (x, y, z) is the point -- a is the major radius (centre to centre of circle) - -- b is the minor radius (radius of circle) + -- b is the minor radius (radius of circle local comp_a = (x_sq+y_sq+z_sq - (major_radius_sq+minor_radius_sq)) local test_value = comp_a*comp_a - 4*major_radius*minor_radius*(minor_radius_sq-z_sq)