ManipulationDelta.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 / Input / ManipulationDelta.cs / 1305600 / ManipulationDelta.cs

                            //---------------------------------------------------------------------------- 
//
// Copyright (C) Microsoft Corporation.  All rights reserved.
//
//--------------------------------------------------------------------------- 

using System; 
using System.Windows; 

namespace System.Windows.Input 
{
    public class ManipulationDelta
    {
        ///  
        ///     Creates a new instance of this object.
        ///  
        public ManipulationDelta(Vector translation, double rotation, Vector scale, Vector expansion) 
        {
            Translation = translation; 
            Rotation = rotation;
            Scale = scale;
            Expansion = expansion;
        } 

        ///  
        ///     Amount of change in position. 
        ///     Unit: Device-independent pixels
        ///  
        public Vector Translation
        {
            get;
            private set; 
        }
 
        ///  
        ///     Amount of change in orientation.
        ///     Unit: Angles (clockwise) 
        /// 
        public double Rotation
        {
            get; 
            private set;
        } 
 
        /// 
        ///     Amount of change in size. 
        ///     Unit: Factors in each dimension (1.0, 1.0 means no change)
        /// 
        public Vector Scale
        { 
            get;
            private set; 
        } 

        ///  
        ///     Amount of change to the radius' size.
        ///     Unit: Device-independent pixels (0.0 means no change)
        /// 
        public Vector Expansion 
        {
            get; 
            private set; 
        }
    } 
}

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