Rotation3D.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media3D / Rotation3D.cs / 1 / Rotation3D.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
//--------------------------------------------------------------------------- 
 
using System;
 
namespace System.Windows.Media.Media3D
{
    /// 
    /// A rotation in 3-space. 
    /// 
    public partial class Rotation3D 
    { 
        //-----------------------------------------------------
        // 
        //  Constructors
        //
        //-----------------------------------------------------
 
        #region Constructors
 
        static Rotation3D() 
        {
            // Create our singleton frozen instance 
            s_identity = new QuaternionRotation3D();
            s_identity.Freeze();
        }
 
        // Prevent 3rd parties from extending this abstract base class
        internal Rotation3D() {} 
 
        #endregion Constructors
 
        //------------------------------------------------------
        //
        //  Public Methods
        // 
        //-----------------------------------------------------
 
        //------------------------------------------------------ 
        //
        //  Public Properties 
        //
        //------------------------------------------------------

        #region Public Properties 

        ///  
        ///     Singleton identity Rotation3D. 
        /// 
        public static Rotation3D Identity 
        {
            get { return s_identity; }
        }
 
        #endregion Public Properties
 
        //----------------------------------------------------- 
        //
        //  Public Events 
        //
        //------------------------------------------------------

        //----------------------------------------------------- 
        //
        //  Internal Properties 
        // 
        //-----------------------------------------------------
 
        #region Internal Properties

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

        //-----------------------------------------------------
        // 
        //  Private Fields
        // 
        //------------------------------------------------------ 

        #region Private Fields 

        private static readonly Rotation3D s_identity;

        #endregion Private Fields 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
//--------------------------------------------------------------------------- 
 
using System;
 
namespace System.Windows.Media.Media3D
{
    /// 
    /// A rotation in 3-space. 
    /// 
    public partial class Rotation3D 
    { 
        //-----------------------------------------------------
        // 
        //  Constructors
        //
        //-----------------------------------------------------
 
        #region Constructors
 
        static Rotation3D() 
        {
            // Create our singleton frozen instance 
            s_identity = new QuaternionRotation3D();
            s_identity.Freeze();
        }
 
        // Prevent 3rd parties from extending this abstract base class
        internal Rotation3D() {} 
 
        #endregion Constructors
 
        //------------------------------------------------------
        //
        //  Public Methods
        // 
        //-----------------------------------------------------
 
        //------------------------------------------------------ 
        //
        //  Public Properties 
        //
        //------------------------------------------------------

        #region Public Properties 

        ///  
        ///     Singleton identity Rotation3D. 
        /// 
        public static Rotation3D Identity 
        {
            get { return s_identity; }
        }
 
        #endregion Public Properties
 
        //----------------------------------------------------- 
        //
        //  Public Events 
        //
        //------------------------------------------------------

        //----------------------------------------------------- 
        //
        //  Internal Properties 
        // 
        //-----------------------------------------------------
 
        #region Internal Properties

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

        //-----------------------------------------------------
        // 
        //  Private Fields
        // 
        //------------------------------------------------------ 

        #region Private Fields 

        private static readonly Rotation3D s_identity;

        #endregion Private Fields 
    }
} 

// 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