message: added isPowerOfTwo
diff: /**
  - * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
  + * Copyright (c) 2018-2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  */
  @@ -11,3 +11,7 @@ export function degToRad (deg: number) {
  export function radToDeg (rad: number) {
  return rad * 57.29578 // rad * 180 / Math.PI
  }
  +
  +export function isPowerOfTwo (x: number) {
  + return (x !== 0) && (x & (x - 1)) === 0
  +}
  \ No newline at end of file
  