From d65556bc83ddb5ad9258a6dea6894269780367a5 Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 1 Mar 2014 20:27:33 +0000 Subject: [PATCH] Fixed formerly broken lume.angle(), version 1.0.7 --- lume.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lume.lua b/lume.lua index 2fc91ec..a61a774 100644 --- a/lume.lua +++ b/lume.lua @@ -7,7 +7,7 @@ -- under the terms of the MIT license. See LICENSE for details. -- -local lume = { _version = "1.0.6" } +local lume = { _version = "1.0.7" } function lume.clamp(x, min, max) @@ -47,7 +47,7 @@ end function lume.angle(x1, y1, x2, y2) - return math.atan2(x1 - x2, y1 - y2) + return math.atan2(y2 - y1, x2 - x1) end