docs: private static double[] angleToCbCr(double angle) {
          double cb = Math.cos(angle);
          double cr = Math.sin(angle);
  
          double acb = Math.abs(cb);
          double acr = Math.abs(cr);
          double factor;
          if (acr > acb) {
              factor = 0.5 / acr;
          } else {
              factor = 0.5 / acb;
          }
  
          cb *= factor;
          cr *= factor;
  
          return new double[] {cb, cr};
      }