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)); } } }