diff options
author | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-27 13:11:45 -0500 |
---|---|---|
committer | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-27 13:11:45 -0500 |
commit | b4c0c263dffeb9c7a3b162c6e168a2d46c8389c5 (patch) | |
tree | 0393f4131d42350ac0e479d8ba7ff29926866cad /utils | |
parent | a59b6c0cfdeb469cecb00648cf6b3c03627322b8 (diff) |
added tileToChar to vec
Diffstat (limited to 'utils')
-rw-r--r-- | utils/vec.js | 3 |
1 files changed, 3 insertions, 0 deletions
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]); +} |