예제 #1
0
        public static List <PointF> Convert(Dictionary.Plot _Addition)
        {
            List <PointF> _Output = new List <PointF> ();

            for (int i = 0; i < _Addition.Vertices.Length; i++)
            {
                _Output.Add(new PointF(
                                (float)_Addition.DrawResolution / 1000 * i,
                                _Addition.Vertices [i]));
            }

            return(_Output);
        }
예제 #2
0
        public static List <PointF> Stretch(Dictionary.Plot _Addition, float _Length)
        {
            int   lengthAddition = (_Addition.Vertices.Length - 1) * _Addition.DrawResolution;
            float lengthCoeff    = (_Length * 1000) / lengthAddition;

            List <PointF> _Output = new List <PointF> ();

            for (int i = 0; i < _Addition.Vertices.Length; i++)
            {
                _Output.Add(new PointF(
                                (float)_Addition.DrawResolution / 1000 * i * lengthCoeff,
                                _Addition.Vertices [i]));
            }

            return(_Output);
        }