Metric in which only neighbors are adjacent.
More...
#include <squares.h>
|
| template<std::integral T> |
| static constexpr auto | is_adjacent (glm::tvec2< T > a, glm::tvec2< T > b) |
| static constexpr auto | is_adjacent (direction dir) |
| template<std::integral T> |
| static constexpr auto | distance (glm::tvec2< T > a, glm::tvec2< T > b) |
Metric in which only neighbors are adjacent.
Definition at line 61 of file squares.h.
◆ distance()
template<std::integral T>
| constexpr auto ghassanpl::geometry::squares::manhattan_metric::distance |
( |
glm::tvec2< T > | a, |
|
|
glm::tvec2< T > | b ) |
|
inlinestaticconstexpr |
◆ is_adjacent() [1/2]
| constexpr auto ghassanpl::geometry::squares::manhattan_metric::is_adjacent |
( |
direction | dir | ) |
|
|
inlinestaticconstexpr |
◆ is_adjacent() [2/2]
template<std::integral T>
| constexpr auto ghassanpl::geometry::squares::manhattan_metric::is_adjacent |
( |
glm::tvec2< T > | a, |
|
|
glm::tvec2< T > | b ) |
|
inlinestaticconstexpr |