添加项目文件。
This commit is contained in:
23
HYJigPro/XDrawable2D.cs
Normal file
23
HYJigPro/XDrawable2D.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace HYJig
|
||||
{
|
||||
public class XDrawable2D
|
||||
{
|
||||
public virtual void Draw(XGraphics g)
|
||||
{
|
||||
}
|
||||
|
||||
public static int GetDistance(Point pt1, Point pt2)
|
||||
{
|
||||
try
|
||||
{
|
||||
return (int)Math.Sqrt(Math.Pow((double)(pt1.X - pt2.X), 2.0) + Math.Pow((double)(pt1.Y - pt2.Y), 2.0));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user