code: private static double createAngle(CharSequence input) {
          byte[] h = SHA1.bytes(input.toString());
          double v = u(h[0]) + (256 * u(h[1]));
          double d = v / 65536;
          return d * 2 * Math.PI;
      }
docs: Generate an angle in the CbCr plane from the input string.
  @see <a href="https://xmpp.org/extensions/xep-0392.html#algorithm-angle">§5.1: Angle generation</a>
  
  @param input input string
  @return output angle