本文整理汇总了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;
}
示例2: Text
public Text(string value, PointD point)
{
Value = value;
RefPoint = point.Clone() as PointD;
}
示例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;
}
示例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;
}
示例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;
}
示例6: AddPoint
public void AddPoint(PointD tpoint)
{
Points.Add(tpoint.Clone() as PointD);
}
示例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;
}
示例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;
}