LinearQuaternionKeyFrame.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / LinearQuaternionKeyFrame.cs / 1305600 / LinearQuaternionKeyFrame.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
//--------------------------------------------------------------------------- 
 
using System;
using System.Windows; 
using MS.Internal.KnownBoxes;

namespace System.Windows.Media.Animation
{ 
    /// 
    /// This class is used as part of a QuaternionKeyFrameCollection in 
    /// conjunction with a KeyFrameQuaternionAnimation to animate a 
    /// Quaternion property value along a set of key frames.
    /// 
    /// This QuaternionKeyFrame interpolates the between the Quaternion Value of
    /// the previous key frame and its own Value linearly to produce its output value.
    /// 
    public partial class LinearQuaternionKeyFrame : QuaternionKeyFrame 
    {
        ///  
        /// UseShortestPath Property 
        /// 
        public static readonly DependencyProperty UseShortestPathProperty = 
            DependencyProperty.Register(
                    "UseShortestPath",
                    typeof(bool),
                    typeof(LinearQuaternionKeyFrame), 
                    new PropertyMetadata(/* defaultValue = */ BooleanBoxes.TrueBox));
 
        ///  
        /// If true, the animation will automatically flip the sign of the destination
        /// Quaternion to ensure the shortest path is taken. 
        /// 
        public bool UseShortestPath
        {
            get 
            {
                return (bool) GetValue(UseShortestPathProperty); 
            } 
            set
            { 
                SetValue(UseShortestPathProperty, value);
            }
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK