header_utils
Loading...
Searching...
No Matches
ghassanpl::geometry::squares::manhattan_metric Struct Reference

Metric in which only neighbors are adjacent. More...

#include <squares.h>

Static Public Member Functions

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)

Detailed Description

Metric in which only neighbors are adjacent.

Definition at line 61 of file squares.h.

Member Function Documentation

◆ distance()

template<std::integral T>
constexpr auto ghassanpl::geometry::squares::manhattan_metric::distance ( glm::tvec2< T > a,
glm::tvec2< T > b )
inlinestaticconstexpr

Definition at line 75 of file squares.h.

◆ is_adjacent() [1/2]

constexpr auto ghassanpl::geometry::squares::manhattan_metric::is_adjacent ( direction dir)
inlinestaticconstexpr

Definition at line 69 of file squares.h.

◆ 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

Definition at line 64 of file squares.h.