aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains/RealTimeGraphX/GraphTransform.cs
blob: 404b5da747ae5b107250dc362dd865e4950596fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RealTimeGraphX
{
    /// <summary>
    /// Represents a graph transformation.
    /// </summary>
    public class GraphTransform
    {
        /// <summary>
        /// Gets or sets the horizontal scale factor.
        /// </summary>
        public double ScaleX { get; set; }

        /// <summary>
        /// Gets or sets the vertical scale factor.
        /// </summary>
        public double ScaleY { get; set; }

        /// <summary>
        /// Gets or sets the horizontal translate transformation.
        /// </summary>
        public double TranslateX { get; set; }

        /// <summary>
        /// Gets or sets the vertical translate transformation.
        /// </summary>
        public double TranslateY { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="GraphTransform"/> class.
        /// </summary>
        public GraphTransform()
        {
            ScaleX = 1;
            ScaleY = 1;
            TranslateX = 0;
            TranslateY = 0;
        }
    }
}