diff --git a/src/CAD/IFox.CAD.Shared/ExtensionMethod/PointEx.cs b/src/CAD/IFox.CAD.Shared/ExtensionMethod/PointEx.cs index 307e23482a422eff9f5fd41626445b25ae4c0efd..16f65d38fc1b76de3b55409d088194cb8deea66b 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; } ///