QuaternionRotation3D.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / QuaternionRotation3D.cs / 1305600 / QuaternionRotation3D.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (c) Microsoft Corporation.  All rights reserved.
//  
//
// Description:  A rotation in 3-space defined by a Quaternion. 
// 
// History:
//  8/15/2005 : [....] - Created 
//
//---------------------------------------------------------------------------

using System; 

namespace System.Windows.Media.Media3D 
{ 
    /// 
    /// A rotation in 3-space defined by a Quaternion. 
    /// 
    public partial class QuaternionRotation3D
    {
        //----------------------------------------------------- 
        //
        //  Constructors 
        // 
        //-----------------------------------------------------
 
        #region Constructors

        /// 
        /// Default constructor that creates a rotation with Quaternion (0,0,0,1). 
        /// 
        public QuaternionRotation3D() {} 
 
        /// 
        /// Constructor taking a quaternion. 
        /// 
        public QuaternionRotation3D(Quaternion quaternion)
        {
            Quaternion = quaternion; 
        }
 
        #endregion Constructors 

        //------------------------------------------------------ 
        //
        //  Internal Properties
        //
        //----------------------------------------------------- 

        #region Internal Properties 
 
        // Used by animation to get a snapshot of the current rotational
        // configuration for interpolation in Rotation3DAnimations. 
        internal override Quaternion InternalQuaternion { get { return _cachedQuaternionValue; } }

        #endregion Internal Properties
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------------- 
//
// 
//    Copyright (c) Microsoft Corporation.  All rights reserved.
//  
//
// Description:  A rotation in 3-space defined by a Quaternion. 
// 
// History:
//  8/15/2005 : [....] - Created 
//
//---------------------------------------------------------------------------

using System; 

namespace System.Windows.Media.Media3D 
{ 
    /// 
    /// A rotation in 3-space defined by a Quaternion. 
    /// 
    public partial class QuaternionRotation3D
    {
        //----------------------------------------------------- 
        //
        //  Constructors 
        // 
        //-----------------------------------------------------
 
        #region Constructors

        /// 
        /// Default constructor that creates a rotation with Quaternion (0,0,0,1). 
        /// 
        public QuaternionRotation3D() {} 
 
        /// 
        /// Constructor taking a quaternion. 
        /// 
        public QuaternionRotation3D(Quaternion quaternion)
        {
            Quaternion = quaternion; 
        }
 
        #endregion Constructors 

        //------------------------------------------------------ 
        //
        //  Internal Properties
        //
        //----------------------------------------------------- 

        #region Internal Properties 
 
        // Used by animation to get a snapshot of the current rotational
        // configuration for interpolation in Rotation3DAnimations. 
        internal override Quaternion InternalQuaternion { get { return _cachedQuaternionValue; } }

        #endregion Internal Properties
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

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