Refactor factory `Quaternion.fromRotation` and create method `Quaternion.setRotation`.