internal override void Mirror(Geometry2D target, Line2D mirrorLine) { if (target is CircleGeometry) { CircleGeometry circle = (target as CircleGeometry); this.start = TransformUtil.Mirror(circle.start, mirrorLine); this.end = TransformUtil.Mirror(circle.end, mirrorLine); } }
/// <summary> /// 当前线的拷贝 /// </summary> /// <param name="v"></param> public override Geometry2D Copy(bool isclone) { var nstart = Vector2D.Create(this.start.X, this.start.Y); var nend = Vector2D.Create(this.end.X, this.end.Y); CircleGeometry circleGeometry = new CircleGeometry(nstart, nend); if (isclone) { } else { circleGeometry.Element = this.Element; } circleGeometry.PenColor = this.PenColor; circleGeometry.FillColor = this.FillColor; return(circleGeometry); }