예제 #1
0
        public DataPoint[,] GetDataPoints()
        {
            var xPoints = XAxis.GetPoints();
            var yPoints = YAxis.GetPoints();

            DataPoint[,] dataPoints = new DataPoint[xPoints.Length, yPoints.Length];

            for (int i = 0; i < xPoints.Length; i++)
            {
                for (int j = 0; j < yPoints.Length; j++)
                {
                    dataPoints[i, j] = new DataPoint(xPoints[i], yPoints[j]);
                }
            }

            return(dataPoints);
        }
예제 #2
0
        // Get 2-d array plot points coordinates
        public Point[,] GetPlotPoints()
        {
            var XPoints = XAxis.GetPoints();
            var YPoints = YAxis.GetPoints();

            Point[,] points = new Point[XPoints.Count, YPoints.Count];

            for (int i = 0; i < XPoints.Count; i++)
            {
                for (int j = 0; j < YPoints.Count; j++)
                {
                    points[i, j] = new Point(XPoints[i], YPoints[j]);
                }
            }

            return(points);
        }