Version:

<static> Chebyshev(x1, y1, x2, y2)

Calculate the Chebyshev distance between two sets of coordinates (points).

Chebyshev distance (or chessboard distance) is the maximum of the horizontal and vertical distances. It's the effective distance when movement can be horizontal, vertical, or diagonal.

name | type | description |
---|---|---|

x1 | number |
The x coordinate of the first point. |

y1 | number |
The y coordinate of the first point. |

x2 | number |
The x coordinate of the second point. |

y2 | number |
The y coordinate of the second point. |

The distance between each point.

- number

Examples:

Since: 3.22.0