|
header_utils
|
Combines a metric and tile size into a single type. More...
#include <squares.h>
Public Types | |
| using | metric |
| using | vec2 |
| using | ivec2 |
| using | rec2 |
| using | irec2 |
| using | tile_pos |
| using | world_pos |
| using | tile_rec |
| using | world_rec |
Public Member Functions | |
| constexpr vec2 | to_world_pos (ivec2 tile_pos) const noexcept |
| constexpr rec2 | world_rect_for_tile (ivec2 tile_pos) const noexcept |
| constexpr ivec2 | to_tile_pos (vec2 world_pos) const noexcept |
| constexpr irec2 | to_tile_rect (rec2 const &world_rect) const noexcept |
| vec2 | snap_to_grid (vec2 world_pos) const |
| constexpr world_pos | to_world_pos (tile_pos tile_pos) const noexcept |
| constexpr world_rec | world_rect_for_tile (tile_pos tile_pos) const noexcept |
| constexpr tile_pos | to_tile_pos (world_pos world_pos) const noexcept |
| constexpr tile_rec | to_tile_rect (world_rec const &world_rect) const noexcept |
| world_pos | snap_to_grid (world_pos world_pos) const |
Static Public Member Functions | |
| static constexpr auto | is_adjacent (ivec2 a, ivec2 b) |
| static constexpr auto | is_adjacent (tile_pos a, tile_pos b) |
| static constexpr auto | is_adjacent (direction dir) |
| static constexpr auto | tile_distance (ivec2 a, ivec2 b) |
| static constexpr auto | tile_distance (tile_pos a, tile_pos b) |
Public Attributes | |
| vec2 | tile_size |
Combines a metric and tile size into a single type.
| using ghassanpl::geometry::squares::ttile_space< I, F, METRIC >::irec2 |
| using ghassanpl::geometry::squares::ttile_space< I, F, METRIC >::ivec2 |
| using ghassanpl::geometry::squares::ttile_space< I, F, METRIC >::metric |
| using ghassanpl::geometry::squares::ttile_space< I, F, METRIC >::rec2 |
| using ghassanpl::geometry::squares::ttile_space< I, F, METRIC >::tile_pos |
| using ghassanpl::geometry::squares::ttile_space< I, F, METRIC >::tile_rec |
| using ghassanpl::geometry::squares::ttile_space< I, F, METRIC >::vec2 |
| using ghassanpl::geometry::squares::ttile_space< I, F, METRIC >::world_pos |
| using ghassanpl::geometry::squares::ttile_space< I, F, METRIC >::world_rec |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
|
inline |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
| vec2 ghassanpl::geometry::squares::ttile_space< I, F, METRIC >::tile_size |