code: public Matrix4f invert(Matrix4f dest) {
          if ((properties & PROPERTY_IDENTITY) != 0) {
              return dest.identity();
          } else if ((properties & PROPERTY_TRANSLATION) != 0)
              return invertTranslation(dest);
          else if ((properties & PROPERTY_ORTHONORMAL) != 0)
              return invertOrthonormal(dest);
          else if ((properties & PROPERTY_AFFINE) != 0)
              return invertAffine(dest);
          else if ((properties & PROPERTY_PERSPECTIVE) != 0)
              return invertPerspective(dest);
          return invertGeneric(dest);
      }
docs: /* (non-Javadoc)
  @see org.joml.Matrix4fc#invert(org.joml.Matrix4f)