//сделали ширину 100. а высоту трогать не надо
        public double scale(PointCollection mypoints)
        {
            maxx = mypoints.Max(pet => pet.X);
            maxy = mypoints.Max(pet => pet.Y);
            minx = mypoints.Min(pet => pet.X);
            miny = mypoints.Min(pet => pet.Y);
            double shir = maxx - minx;
            double vis = maxy - miny;
            wid = shir;
            heid = vis;
            for (int i = 0; i < mypoints.Count; i++)
            {
                //mypoints[i] = new Point(((mypoints[i].X - minx) * 100 / shir) + minx, ((mypoints[i].Y - miny) * 100 / vis) + miny);
                mypoints[i] = new Point(((mypoints[i].X - minx) * 100 / shir) + minx, mypoints[i].Y );

            }
            double sq = square(mypoints);
            return sq;
        }