Ejemplo n.º 1
0
        internal override void Mirror(Geometry2D target, Line2D mirrorLine)
        {
            if (target is MeasureGeometry)
            {
                MeasureGeometry measure = (target as MeasureGeometry);

                this.start = TransformUtil.Mirror(measure.start, mirrorLine);
                this.end   = TransformUtil.Mirror(measure.end, mirrorLine);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 当前线的拷贝
        /// </summary>
        /// <param name="v"></param>
        public override Geometry2D Copy(bool isclone)
        {
            var             nstart = new Vector2D(this.start.X, this.start.Y);
            var             nend   = new Vector2D(this.end.X, this.end.Y);
            MeasureGeometry nline  = new MeasureGeometry(nstart, nend);

            if (isclone)
            {
            }
            else
            {
                nline.Element = this.Element;
            }
            return(nline);
        }