Computational improvement for rotation smoothing

Signed-off-by: Alkaelis <AlkaelisFenaro@gmail.com>
Merge pull request #507 from Alkaelis/master

Computational improvement for rotation smoothing