code: function solveAngle(a, b, c) {
      var temp = (a * a + b * b - c * c) / (2 * a * b);
      if (temp >= -1 && temp <= 1) {
          return radToDeg(Math.acos(temp));
      }
      else {
          throw new Error("No angle solution for points " + a + " " + b + " " + c);
      }
  }
docs: Takes a, b, and c to be lengths of legs of a triangle. Uses the law of cosines to return the angle C, i.e. the corner across from leg c