This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- this is an old version | |
-- see: https://github.com/Reselim/Base64 | |
local FILLER_CHARACTER = 61 | |
local alphabet = {} | |
local indexes = {} | |
for index = 65, 90 do table.insert(alphabet, index) end -- A-Z | |
for index = 97, 122 do table.insert(alphabet, index) end -- a-z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dwordMultiply(a, b) | |
a = a % 4294967296 | |
b = b % 4294967296 | |
local ah, al = math.floor(a / 65536), a % 65536 | |
local bh, bl = math.floor(b / 65536), b % 65536 | |
local high = ((ah * bl) + (al * bh)) % 65536 | |
return ((high * 65536) + (al * bl)) % 4294967296 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local MockTree = {} | |
local function addJointEdge(joints, joint, me, other) | |
local edgeList = joints[me] | |
if not edgeList then | |
edgeList = {} | |
joints[me] = edgeList | |
end | |
table.insert(edgeList, {joint, other}) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
MIT License | |
Copyright (c) 2021 EgoMoose | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |