code: public Matrix4d rotateY(double ang, Matrix4d dest) {
          if ((properties & PROPERTY_IDENTITY) != 0)
              return dest.rotationY(ang);
          double sin, cos;
          sin = Math.sin(ang);
          cos = Math.cosFromSin(sin, ang);
          double rm00 = cos;
          double rm02 = -sin;
          double rm20 = sin;
          double rm22 = cos;
  
          // add temporaries for dependent values
          double nm00 = m00 * rm00 + m20 * rm02;
          double nm01 = m01 * rm00 + m21 * rm02;
          double nm02 = m02 * rm00 + m22 * rm02;
          double nm03 = m03 * rm00 + m23 * rm02;
          // set non-dependent values directly
          dest.m20 = m00 * rm20 + m20 * rm22;
          dest.m21 = m01 * rm20 + m21 * rm22;
          dest.m22 = m02 * rm20 + m22 * rm22;
          dest.m23 = m03 * rm20 + m23 * rm22;
          // set other values
          dest.m00 = nm00;
          dest.m01 = nm01;
          dest.m02 = nm02;
          dest.m03 = nm03;
          dest.m10 = m10;
          dest.m11 = m11;
          dest.m12 = m12;
          dest.m13 = m13;
          dest.m30 = m30;
          dest.m31 = m31;
          dest.m32 = m32;
          dest.m33 = m33;
          dest.properties = properties & ~(PROPERTY_PERSPECTIVE | PROPERTY_IDENTITY | PROPERTY_TRANSLATION);
          return dest;
      }
docs: /* (non-Javadoc)
  @see org.joml.Matrix4dc#rotateY(double, org.joml.Matrix4d)