示例#1
0
        /// <summary>
        /// Sets progress time
        /// </summary>
        /// <param name="progressTime">Progress time</param>
        private void SetProgressTime(double progressTime)
        {
            double angle;                                                     // Angle of rotation
            double x, y, z;                                                   // Coordinates of transformation

            calculator.SetTime(progressTime, out angle, out x, out y, out z); // Calculation of coordinates and angle
            angle_uniform.Angle = (180 / Math.PI) * angle;                    // Sets value of rotation angle
            double fromVal = From;
            double toVal   = To;

            // Setting of coordinates of transformation
            translation.OffsetX = x;
            translation.OffsetY = y;
            translation.OffsetZ = z;
        }