Example #1
0
        // Создание 2D координат из пар кодов
        public static DxfDot2D Create(List <DxfCodePair> pairs)
        {
            DxfDot2D point = new DxfDot2D();

            foreach (DxfCodePair pair in pairs)
            {
                switch (pair.Code)
                {
                case 10:
                    point.X = pair.AsDouble;
                    break;

                case 20:
                    point.Y = pair.AsDouble;
                    break;
                }
            }
            return(point);
        }
Example #2
0
 // Перевод точки DxfDot2D в класс Windows.Point
 public static Point Dot2DToPoint(DxfDot2D dot)
 {
     return(new Point(dot.X, dot.Y));
 }
Example #3
0
        }                                               // название секции

        #endregion
        #region Конструктор

        public LimMax(DxfDot2D value)
            : base(value.X, value.Y)
        {
        }
Example #4
0
 public DxfDot(DxfDot2D point) : this(point.X, point.Y)
 {
 }