internal override void Mirror(Geometry2D target, Line2D mirrorLine) { if (target is BeamGeometry) { BeamGeometry beam = (target as BeamGeometry); this.start = TransformUtil.Mirror(beam.start, mirrorLine); this.end = TransformUtil.Mirror(beam.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); BeamGeometry beamGeometry = new BeamGeometry(nstart, nend, this.thickness); if (isclone) { } else { beamGeometry.Element = this.Element; } beamGeometry.thickness = this.thickness; beamGeometry.PenColor = this.PenColor; beamGeometry.FillColor = this.FillColor; beamGeometry.Opacity = this.Opacity; return(beamGeometry); }