コード例 #1
0
 public double Distance(DoublePoint3D target) => Math.Sqrt(SquareDistance(target));
コード例 #2
0
 public double SquareDistance(DoublePoint3D target) => (Math.Pow(X - target.X, 2) + Math.Pow(Y - target.Y, 2) + Math.Pow(Z - target.Z, 2));