02 2021 档案

强行结束Thread
摘要:System.Threading.Thread thread; public void Dispose() { if (thread.ThreadState == ThreadState.Running) { thread.Abort(); } } 阅读全文

posted @ 2021-02-23 14:36 月下独酌孤醉 阅读(79) 评论(0) 推荐(0)

调试小技巧
摘要://在指定路径生成文档,内容是你运行步骤的时间+输入的msg public static void WriteMessage(string msg) { File.AppendAllText(Path, DateTime.Now.ToLongTimeString() + ":\t" + msg + 阅读全文

posted @ 2021-02-23 14:33 月下独酌孤醉 阅读(41) 评论(0) 推荐(0)

判断直线和圆的交点
摘要:/// <summary> /// 判断直线和圆的交点 /// </summary> public bool GetIntersectionCircle(double startx, double starty, double endx, double endy, double centerx, d 阅读全文

posted @ 2021-02-23 14:27 月下独酌孤醉 阅读(296) 评论(0) 推荐(0)

求直线和直线交点
摘要:/// <summary> /// 求直线和直线交点 /// </summary> public double[] GetIntersection(double x1, double y1, double x2, double y2, double x3, double y3, double x4, 阅读全文

posted @ 2021-02-23 14:25 月下独酌孤醉 阅读(114) 评论(0) 推荐(0)

判断交点是否在圆弧上
摘要:通过判断与圆的交点找到交点后,可通过这一步来判断交点是否在圆弧上面 //这个是判断顺时针还是逆时针旋转 if (templine.EndAngle - templine.StartAngle >= 0) direction = true; else direction = false; public 阅读全文

posted @ 2021-02-23 14:24 月下独酌孤醉 阅读(613) 评论(0) 推荐(0)