do you need that functionality to work in GUI mode? If so, here's an example video showing that Cinema 4D already provides that funtionality - a bit hidden though:
In P/S/R tool with a selected object,
Ctrl+RightClick an axis (or rotation band). Release both to hover over a reference point, edge, axis, etc.
Left-Click and drag to a target point.
Another workaround I also use often, are guides. Set a guide to semi-line, so you have start - and end-handles. Snap the guide to the edge or angled wall.
Now you can either use Guide-Snapping or simply copy/paste the rotation.
The third solution would be to use dynamic guides.