constructor( editor, object = null, newRotation = null, optionalOldRotation = null ) {

		super( editor );

		this.type = 'SetRotationCommand';
		this.name = editor.strings.getKey( 'command/SetRotation' );
		this.updatable = true;

		this.object = object;

		if ( object !== null && newRotation !== null ) {

			this.oldRotation = object.rotation.clone();
			this.newRotation = newRotation.clone();

		}

		if ( optionalOldRotation !== null ) {

			this.oldRotation = optionalOldRotation.clone();

		}

	}
@param {Editor} editor
@param {THREE.Object3D|null} object
@param {THREE.Euler|null} newRotation
@param {THREE.Euler|null} optionalOldRotation
@constructor