summaryrefslogtreecommitdiff
path: root/grapher/Models/Mouse/PointData.cs
blob: 87bfc62da125471d163f2fef7de6a5c6d5bde6f3 (plain) (blame)
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
using System;

namespace grapher.Models.Mouse
{
    public class PointData
    {
        #region Constructors

        public PointData()
        {
            X = new double[] { 0.01 };
            Y = new double[] { 0.01 };
        }

        #endregion Constructors

        #region Properties

        private double[] X { get; set; }
        private double[] Y { get; set; }

        public void Set(double x, double y)
        {
            X[0] = x;
            Y[0] = y;
        }

        #endregion Properties

        #region Methods

        public void Get(out double[] x, out double[] y)
        {
                x = X;
                y = Y;
        }

        #endregion Methods
    }
}