private void Shift(object sender, EventArgs e) { var moveTransformation = TransformationsFactory.CreateMoveTransformation( (double)moveX.Value, (double)moveY.Value, (double)moveZ.Value); ApplyTransformation(moveTransformation); }
private void MoveLight(object sender, EventArgs e) { var moveTransformation = TransformationsFactory.CreateMoveTransformation( (double)moveLightX.Value, (double)moveLightY.Value, (double)moveLightZ.Value); moveTransformation.Transform(lightPoint); RedrawFigures(); }