From 9d2a0ca23c8bcf9199962a0e785cd4bed063f25d Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Tue, 13 Jul 2021 09:54:11 -0700 Subject: [PATCH] round mtrig values --- worldeditadditions_commands/commands/measure/mtrig.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldeditadditions_commands/commands/measure/mtrig.lua b/worldeditadditions_commands/commands/measure/mtrig.lua index d955f79..962abeb 100644 --- a/worldeditadditions_commands/commands/measure/mtrig.lua +++ b/worldeditadditions_commands/commands/measure/mtrig.lua @@ -17,7 +17,7 @@ worldedit.register_command("mtrig", { local str = "The measurements of the line pos1,pos2 are Length (D): " local vec = v3.subtract(worldedit.pos2[name],worldedit.pos1[name]):abs() local len = vec:length() - str = str..len..", ∠XZ: "..math.deg(math.atan(vec.z/vec.x)).."° ∠DY: "..math.deg(math.asin(vec.y/len)).."°" + str = str..wea.round(len, 4)..", ∠XZ: "..wea.round(math.deg(math.atan(vec.z/vec.x)), 4).."°, ∠DY: "..wea.round(math.deg(math.asin(vec.y/len)), 4).."°" return true, str end, })