This commit is contained in:
Matthias Richter 2018-06-15 17:41:31 +02:00
parent 3ac246dd33
commit 0dea46b0b5
2 changed files with 0 additions and 9 deletions

View File

@ -38,10 +38,6 @@ local function div(s, x,y)
return x/s, y/s
end
local function idiv(s, x,y)
return x//s, y//s
end
local function add(x1,y1, x2,y2)
return x1+x2, y1+y2
end

View File

@ -97,11 +97,6 @@ function vector.__div(a,b)
return new(a.x / b, a.y / b)
end
function vector.__idiv(a,b)
assert(isvector(a) and type(b) == "number", "wrong argument types (expected <vector> / <number>)")
return new(a.x // b, a.y // b)
end
function vector.__eq(a,b)
return a.x == b.x and a.y == b.y
end