code: public Vector4d mul(Matrix4fc mat, Vector4d dest) {
          if ((mat.properties() & Matrix4fc.PROPERTY_AFFINE) != 0)
              return mulAffine(mat, dest);
          return mulGeneric(mat, dest);
      }
docs: /* (non-Javadoc)
  @see org.joml.Vector4dc#mul(org.joml.Matrix4fc, org.joml.Vector4d)