HighMap library (C++)
Loading...
Searching...
No Matches
hmap::TileRegion Struct Reference

#include <tile_region.hpp>

Collaboration diagram for hmap::TileRegion:

Public Member Functions

 TileRegion (const TileKey &key, const glm::vec4 &bbox, const glm::ivec2 &shape, const glm::vec4 &halo={0, 0, 0, 0})
 
glm::vec2 cell_center (int i, int j) const
 
glm::vec2 cell_corner (int i, int j) const
 
std::string key_as_string () const
 

Public Attributes

TileKey key
 
glm::vec4 bbox
 
glm::ivec2 shape
 
glm::ivec4 halo
 

Constructor & Destructor Documentation

◆ TileRegion()

hmap::TileRegion::TileRegion ( const TileKey key,
const glm::vec4 &  bbox,
const glm::ivec2 &  shape,
const glm::vec4 &  halo = {0, 0, 0, 0} 
)

Member Function Documentation

◆ cell_center()

glm::vec2 hmap::TileRegion::cell_center ( int  i,
int  j 
) const

◆ cell_corner()

glm::vec2 hmap::TileRegion::cell_corner ( int  i,
int  j 
) const

◆ key_as_string()

std::string hmap::TileRegion::key_as_string ( ) const

Member Data Documentation

◆ key

TileKey hmap::TileRegion::key

◆ bbox

glm::vec4 hmap::TileRegion::bbox

◆ shape

glm::ivec2 hmap::TileRegion::shape

◆ halo

glm::ivec4 hmap::TileRegion::halo

The documentation for this struct was generated from the following files: