From 41e57dc5f3e1802201d1d504b13031de99eacfba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E5=82=B2=E5=B4=96-=E5=BF=98=E9=9C=84?= <702099480@qq.com> Date: Sat, 29 Jul 2023 05:24:44 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0GetAngel=E6=96=B9=E6=B3=95?= =?UTF-8?q?=EF=BC=8C=E8=B0=83=E8=BD=AC=E5=90=91=E9=87=8F=E6=96=B9=E5=90=91?= =?UTF-8?q?=EF=BC=8C=E8=8E=B7=E5=8F=96=E6=AD=A3=E7=A1=AE=E7=9A=84=E8=A7=92?= =?UTF-8?q?=E5=BA=A6=EF=BC=8C=E8=80=8C=E4=B8=8D=E6=98=AF=E5=8F=8D=E6=96=B9?= =?UTF-8?q?=E5=90=91=E7=9A=84=E8=A7=92=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 云傲崖-忘霄 <702099480@qq.com> --- src/CAD/IFox.CAD.Shared/ExtensionMethod/PointEx.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CAD/IFox.CAD.Shared/ExtensionMethod/PointEx.cs b/src/CAD/IFox.CAD.Shared/ExtensionMethod/PointEx.cs index 307e234..16f65d3 100644 --- a/src/CAD/IFox.CAD.Shared/ExtensionMethod/PointEx.cs +++ b/src/CAD/IFox.CAD.Shared/ExtensionMethod/PointEx.cs @@ -35,7 +35,7 @@ public static double GetAngle(this Point3d startPoint, Point3d endPoint, Vector3 _PlaneCache = new Plane(new Point3d(), direction.Value); if (_PlaneCache == null) _PlaneCache = new Plane(new Point3d(), Vector3d.ZAxis); - return startPoint.GetVectorTo(endPoint).AngleOnPlane(_PlaneCache); + return endPoint.GetVectorTo(startPoint).AngleOnPlane(_PlaneCache); } /// /// 两点计算弧度范围0到2Pi @@ -45,7 +45,7 @@ public static double GetAngle(this Point3d startPoint, Point3d endPoint, Vector3 /// 弧度值 public static double GetAngle(this Point2d startPoint, Point2d endPoint) { - return startPoint.GetVectorTo(endPoint).Angle; + return endPoint.GetVectorTo(startPoint).Angle; } /// -- Gitee