Ejemplo n.º 1
0
        public static System.Drawing.Point[] ToPoints(double[,] points, double scale, int centerX, int centerY)
        {
            var result = new System.Drawing.Point[points.GetLength(0)];

            for (int i = 0; i < result.GetLength(0); i++)
            {
                result[i] = new System.Drawing.Point((int)(points[i, 0] * scale) + centerX, (int)(points[i, 1] * scale) + centerY);
            }

            return(result);
        }