lixiaojun
2024-09-25 17b67713b60e9940ddb0d3f9ea35bea04d99cea8
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));
        }
    }
}