Fix function angle2dcm(EulerAngles)

The function angle2dcm(EulerAngles) must be parametric to improve the
performance.