From 502cb8de2bb3696520520d55ca4e1cf596631fab Mon Sep 17 00:00:00 2001 From: musicdie Date: Mon, 3 Oct 2022 14:23:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0ucs=E5=92=8Cwcs=E4=B9=8B?= =?UTF-8?q?=E9=97=B4=E7=9A=84=E8=A7=92=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/IFoxCAD.Cad.Shared/Runtime/Env.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/IFoxCAD.Cad.Shared/Runtime/Env.cs b/src/IFoxCAD.Cad.Shared/Runtime/Env.cs index 6de5354..4ad7aef 100644 --- a/src/IFoxCAD.Cad.Shared/Runtime/Env.cs +++ b/src/IFoxCAD.Cad.Shared/Runtime/Env.cs @@ -580,6 +580,11 @@ public static int SetEnv(string? name, string? var) /// Bool public static bool IsUcs() => (short)GetVar("WORLDUCS") == 0; + /// + /// 获得UCS和WCS之间的角度(弧度制) + /// + /// double + public static double GetUcsAngle() => Editor.CurrentUserCoordinateSystem.CoordinateSystem3d.Xaxis.AngleOnPlane(new Plane(Point3d.Origin,Vector3d.ZAxis)); #region dwg版本号/cad版本号/年份 /// -- Gitee