添加项目文件。

This commit is contained in:
GG Z
2026-02-23 14:58:05 +08:00
parent ce96926220
commit 771d780d6c
342 changed files with 33470 additions and 0 deletions

51
HYJigPro/XArc2D.cs Normal file
View File

@@ -0,0 +1,51 @@
using System;
using System.Drawing;
using System.Runtime.CompilerServices;
namespace HYJig
{
public class XArc2D : XDrawable2D, ICloneable
{
public XArc2D(Point ptStart, Point ptEnd, Point ptOnArc)
{
this.PointStart = ptStart;
this.PointEnd = ptEnd;
this.PointOnArc = ptOnArc;
}
public override void Draw(XGraphics g)
{
try
{
RectangleF rectangleF = default(RectangleF);
double num = 0.0;
double num2 = 0.0;
Class2.smethod_0(this.PointStart, this.PointEnd, this.PointOnArc, ref rectangleF, ref num, ref num2);
g.m_graphics.DrawArc(g.m_pen, rectangleF, (float)num, (float)num2);
}
catch
{
}
}
public object Clone()
{
try
{
return new XArc2D(this.PointStart, this.PointEnd, this.PointOnArc);
}
catch
{
}
return null;
}
public Point PointStart { get; set; }
public Point PointEnd { get; set; }
public Point PointOnArc { get; set; }
public int Radius { get; } = 0;
}
}