From e7a625f5d29eb22dbaebb31dacf672e13f45fd9f Mon Sep 17 00:00:00 2001 From: Stephen Michaelis Date: Sun, 20 Jan 2019 10:00:35 -0500 Subject: [PATCH] updated Floor method --- geometry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geometry.go b/geometry.go index 6642b66..0543842 100644 --- a/geometry.go +++ b/geometry.go @@ -85,7 +85,7 @@ func (u Vec) Sub(v Vec) Vec { } // Floor returns converts x and y to their integer equivalents. -func (u Vec) Floor(v Vec) Vec { +func (u Vec) Floor() Vec { return Vec{ math.Floor(u.X), math.Floor(u.Y),