Skip to content

Latest commit

 

History

History
35 lines (18 loc) · 1.02 KB

ChessboardDistance.md

File metadata and controls

35 lines (18 loc) · 1.02 KB

ChessboardDistance

ChessboardDistance(u, v)

returns the chessboard distance (also known as Chebyshev distance) between u and v, which is the number of moves a king on a chessboard needs to get from square u to square v.

See:

Examples

>> ChessboardDistance({-1, -1}, {1, 1})
2

Related terms

FindClusters, BinaryDistance, BrayCurtisDistance, CanberraDistance, CosineDistance, EuclideanDistance, ManhattanDistance, SquaredEuclideanDistance

Implementation status

  • ✅ - full supported

Github