code: public int maxComponent() {
          double absX = Math.abs(x);
          double absY = Math.abs(y);
          double absZ = Math.abs(z);
          if (absX >= absY && absX >= absZ) {
              return 0;
          } else if (absY >= absZ) {
              return 1;
          }
          return 2;
      }
docs: /* (non-Javadoc)
  @see org.joml.Vector3dc#maxComponent()