コード例 #1
0
ファイル: Coordinates.cs プロジェクト: r-a-stone/Craft.Net
 public bool Equals(Coordinates3D other)
 {
     return other.X.Equals(X) && other.Y.Equals(Y) && other.Z.Equals(Z);
 }
コード例 #2
0
ファイル: Coordinates.cs プロジェクト: r-a-stone/Craft.Net
 public double DistanceTo(Coordinates3D other)
 {
     return Math.Sqrt(Square((double)other.X - (double)X) +
                      Square((double)other.Y - (double)Y) +
                      Square((double)other.Z - (double)Z));
 }