From 17b67713b60e9940ddb0d3f9ea35bea04d99cea8 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期三, 25 九月 2024 01:49:46 +0800
Subject: [PATCH] l3d修改

---
 WinFrmUI/Yw.WinFrmUI.Hydro.L3d.Core/00-core/Point3d.cs |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.L3d.Core/00-core/Point3d.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.L3d.Core/00-core/Point3d.cs
index 7a1e841..cecee15 100644
--- a/WinFrmUI/Yw.WinFrmUI.Hydro.L3d.Core/00-core/Point3d.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.L3d.Core/00-core/Point3d.cs
@@ -90,5 +90,17 @@
             return !InValid();
         }
 
+        /// <summary>
+        /// 璺濈
+        /// </summary>
+        public float Distance(Point3d other)
+        {
+            if (other == null)
+            {
+                return default;
+            }
+            return MathF.Sqrt(MathF.Pow(this.X - other.X, 2) + MathF.Pow(this.Y - other.Y, 2) + MathF.Pow(this.Z - other.Z, 2));
+        }
+
     }
 }

--
Gitblit v1.9.3