예제 #1
0
        private void Shift(object sender, EventArgs e)
        {
            var moveTransformation = TransformationsFactory.CreateMoveTransformation(
                (double)moveX.Value,
                (double)moveY.Value,
                (double)moveZ.Value);

            ApplyTransformation(moveTransformation);
        }
예제 #2
0
        private void MoveLight(object sender, EventArgs e)
        {
            var moveTransformation = TransformationsFactory.CreateMoveTransformation(
                (double)moveLightX.Value,
                (double)moveLightY.Value,
                (double)moveLightZ.Value);

            moveTransformation.Transform(lightPoint);
            RedrawFigures();
        }