当前位置: 首页>>代码示例>>C#>>正文


C# PointD.Clone方法代码示例

本文整理汇总了C#中PointD.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# PointD.Clone方法的具体用法?C# PointD.Clone怎么用?C# PointD.Clone使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PointD的用法示例。


在下文中一共展示了PointD.Clone方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Line

        public Line(PointD tstartpnt, PointD tendpnt, Color tcolor, float twidth)
        {
            this.Color = tcolor;
            this.LineWidth = twidth;

            this.p1 = tstartpnt.Clone() as PointD;
            this.p2 = tendpnt.Clone() as PointD;
        }
开发者ID:NTUST-PTL,项目名称:PTL-Project,代码行数:8,代码来源:04_1D.cs

示例2: Text

 public Text(string value, PointD point)
 {
     Value = value;
     RefPoint = point.Clone() as PointD;
 }
开发者ID:NTUST-PTL,项目名称:PTL-Project,代码行数:5,代码来源:04_1D.cs

示例3: Arc

        public Arc(PointD tcenter, double tradius, double tStartAng, double tEndAng, Color tcolor, LineType ttype, float twidth)
        {
            this.Color = tcolor;
            this.LineType = ttype;
            this.LineWidth = twidth;

            Center = tcenter.Clone() as PointD;
            Radius = tradius;
            StartAng = tStartAng;
            EndAng = tEndAng;
        }
开发者ID:NTUST-PTL,项目名称:PTL-Project,代码行数:11,代码来源:04_1D.cs

示例4: DiametricDimension

 public DiametricDimension(Circle aCircle, double refDirection, PointD tTextReferpn, string tText, double tArrowSize)
 {
     double angle = DegToRad(refDirection);
     PointD V1 = (new PointD(Cos(angle), Sin(angle), 0)) * aCircle.Radius;
     Startpn = aCircle.Center - V1;
     Endpn = aCircle.Center + V1;
     TextReferP = tTextReferpn.Clone() as PointD;
     LeaderLength = Norm((this.TextReferP - (this.Startpn + this.Endpn) / 2.0)) - Value / 2.0;
     if (LeaderLength < 0) LeaderLength = 0;
     ArrowSize = tArrowSize;
     this.Text = tText;
 }
开发者ID:NTUST-PTL,项目名称:PTL-Project,代码行数:12,代码来源:04_1D.cs

示例5: Circle

        public Circle(PointD tcenter, double tradius, Color tcolor, LineType ttype, float twidth)
        {
            this.Color = tcolor;
            this.LineType = ttype;
            this.LineWidth = twidth;

            this.Center = tcenter.Clone() as PointD;
            this.Radius = tradius;
        }
开发者ID:NTUST-PTL,项目名称:PTL-Project,代码行数:9,代码来源:04_1D.cs

示例6: AddPoint

 public void AddPoint(PointD tpoint)
 {
     Points.Add(tpoint.Clone() as PointD);
 }
开发者ID:NTUST-PTL,项目名称:PTL-Project,代码行数:4,代码来源:04_1D.cs

示例7: RadialDimension

 public RadialDimension(Circle aCircle, double refDirection, PointD tTextReferpn, double tArrowSize)
 {
     double angle = DegToRad(refDirection);
     PointD V1 = (new PointD(Cos(angle), Sin(angle), 0)) * aCircle.Radius;
     Startpn = aCircle.Center.Clone() as PointD;
     Endpn = aCircle.Center + V1;
     TextReferP = tTextReferpn.Clone() as PointD;
     LeaderLength = Norm((this.Startpn - this.TextReferP)) - Value;
     if (LeaderLength < 0) LeaderLength = 0;
     ArrowSize = tArrowSize;
 }
开发者ID:NTUST-PTL,项目名称:PTL-Project,代码行数:11,代码来源:04_1D.cs

示例8: AlignedDimension

        public AlignedDimension(PointD tStartpn, PointD tEndpn)
        {
            Startpn = tStartpn.Clone() as PointD;
            Endpn = tEndpn.Clone() as PointD;

            PointD v1 = Normalize(Cross(new PointD(0, 0, 1), Endpn - Startpn));
            TextReferP = (Startpn + Endpn) / 2 + v1 * ArrowSize * 0.5;
            HieghtReferP = Endpn + v1 * ArrowSize * 0.5;
        }
开发者ID:NTUST-PTL,项目名称:PTL-Project,代码行数:9,代码来源:04_1D.cs


注:本文中的PointD.Clone方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。