]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/Area.cpp
renamed namespace geometry -> math
[l2e.git] / src / map / Area.cpp
index a64dab2a928ea1b479860ee1f1220ff7623bcf76..2c7f1b8b7987d50fc477b7b8f5c3af501899344b 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <stdexcept>
 
-using geometry::Vector;
+using math::Vector;
 using loader::FieldDescription;
 using loader::Interpreter;
 using loader::TypeDescription;
@@ -24,7 +24,7 @@ Area::Area()
 }
 
 
-Tile *Area::TileAt(const geometry::Vector<int> &offset) {
+Tile *Area::TileAt(const math::Vector<int> &offset) {
        int tileIndex(offset.Y() * width + offset.X());
        if (tileIndex < numTiles) {
                return tiles +tileIndex;
@@ -33,7 +33,7 @@ Tile *Area::TileAt(const geometry::Vector<int> &offset) {
        }
 }
 
-const Tile *Area::TileAt(const geometry::Vector<int> &offset) const {
+const Tile *Area::TileAt(const math::Vector<int> &offset) const {
        int tileIndex(offset.Y() * width + offset.X());
        if (tileIndex < numTiles) {
                return tiles +tileIndex;