Split the d5::makeRotation() function into an explicit extrinsic and intrinsic function pair.

Split the d5::makeRotation() function into an explicit extrinsic and intrinsic function pair.