Why opencv no function that transform rotation matrix(3*3) to Euler angle

when I need a eulerangle , I need this code :


   Eigen::Matrix3d egR33;
    cv2eigen(matR33inv, egR33);
    egR33.eulerAngles(0,1,2);

why opencv have no a function do that?

opencv uses matrices or axis-angle encoding, which aren’t susceptible to gimbal lock.

why? because nobody wrote it yet.