namespace dk { template inline Vector<2> get_diamond_coordinates (const TileIterator& parIterator, const Vector<2>& parSize) { PixelConvDiamond pconv(parSize, true, false); return pconv.to_pixel(parIterator.position()); } template inline Vector<2> get_half_diamond_coordinates (const TileIterator& parIterator, const Vector<2>& parSize) { PixelConvDiamond pconv(parSize, true, false, PixelConvDiamond::coords(1, 2)); return pconv.to_pixel(parIterator.position()); } template inline Vector get_square_coordinates (const TileIterator& parIterator, const Vector& parSize) { PixelConvSquare pconv((parSize)); return pconv.to_pixel(parIterator.position()); } template inline Vector<2> get_hex_coordinates (const TileIterator& parIterator, const Vector<2>& parSize) { PixelConvHex pconv(parSize, true); return pconv.to_pixel(parIterator.position()); } template PixelConv::PixelConv (MapTypes parType, const coords& parTileSize) : m_tile_size(parTileSize), m_map_type(parType) { } template MapTypes PixelConv::map_type() const { return m_map_type; } template auto PixelConv::tile_size() const -> const coords& { return m_tile_size; } template PixelConvSquare::PixelConvSquare (const coords& parTileSize) : base_class(MapType_Orthogonal, parTileSize) { } template auto PixelConvSquare::to_pixel (const coords& parFrom) const -> coords { return parFrom * this->tile_size(); } } //namespace dk