Added various constant and util classes from Tetragon/render2d.
Improved nextPowerOfTwo util method.