(svn r21470) -Codechange: add method to get the distance from the edge in a given direction

This commit is contained in:
rubidium
2010-12-11 19:48:31 +00:00
parent df058ab134
commit 26718abaf4
2 changed files with 18 additions and 0 deletions

View File

@@ -331,6 +331,7 @@ uint DistanceSquare(TileIndex, TileIndex); ///< euclidian- or L2-Norm squared
uint DistanceMax(TileIndex, TileIndex); ///< also known as L-Infinity-Norm
uint DistanceMaxPlusManhattan(TileIndex, TileIndex); ///< Max + Manhattan
uint DistanceFromEdge(TileIndex); ///< shortest distance from any edge of the map
uint DistanceFromEdgeDir(TileIndex, DiagDirection); ///< distance from the map edge in given direction
/**
* A loop which iterates to a square of tiles