refactor node transformation using quaternion

Signed-off-by: Wayne Wolf <wayne.ron.wu@googlemail>