From b4c0c263dffeb9c7a3b162c6e168a2d46c8389c5 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Fri, 27 Dec 2019 13:11:45 -0500 Subject: added tileToChar to vec --- utils/vec.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils') diff --git a/utils/vec.js b/utils/vec.js index 9808c8b..f4a625c 100644 --- a/utils/vec.js +++ b/utils/vec.js @@ -24,3 +24,6 @@ exports.sub = function(orig, vec){ exports.dot = function(orig,vec){ return elem(orig, vec, (a,b) => a*b); } +exports.tileToChar = function(orig){ + return exports.dot(orig, [8,16]); +} -- cgit