Beispiel #1
0
        public ImageByLinesPresenter CreatePresenter()
        {
            var ip = new ImageByLinesPresenter(_image);

            var angleInRadian = AngleToVector.DegToRad(_Angle);
            var mathVector = AngleToVector.GetNormal(angleInRadian);
            var resultingVector = new Vector(Math.Round(mathVector.X, 6), Math.Round(mathVector.Y, 6));

            ip.Present(resultingVector, _LineRes, _PointRes);

            return ip;
        }
        public ImageByLinesPresenter CreatePresenter()
        {
            var ip = new ImageByLinesPresenter(_image);

            var angleInRadian   = AngleToVector.DegToRad(_Angle);
            var mathVector      = AngleToVector.GetNormal(angleInRadian);
            var resultingVector = new Vector(Math.Round(mathVector.X, 6), Math.Round(mathVector.Y, 6));

            ip.Present(resultingVector, _LineRes, _PointRes);

            return(ip);
        }