code: public Matrix4d rotateZ(double ang, Matrix4d dest) {
          if ((properties & PROPERTY_IDENTITY) != 0)
              return dest.rotationZ(ang);
          double sin = Math.sin(ang);
          double cos = Math.cosFromSin(sin, ang);
          return rotateTowardsXY(sin, cos, dest);
      }
docs: /* (non-Javadoc)
  @see org.joml.Matrix4dc#rotateZ(double, org.joml.Matrix4d)