|
OpenEnroth 39d87c6
|
#include <array>#include "Library/Geometry/Point.h"#include "Library/Image/Image.h"#include "Engine/Data/TileEnums.h"Classes | |
| class | OutdoorTerrain |
| struct | OutdoorTerrain::TileGeometry |
Functions | |
| Vec2i | gridToWorld (Pointi gridPos) |
| Pointi | worldToGrid (const Vec3f &worldPos) |
A note on grid coordinates. In grid coordinates Y-axis points south (down on the minimap), X-axis points east (right on the minimap), (0, 0) is NW (top-left) corner of the map.
| gridPos | Grid coordinates. |
A note on world coordinates. Y-axis points north (up on the minimap), X-axis points east (right on the minimap), (0, 0) is in the center of the map.
| worldPos | Position in world coordinates. |
worldPos is in.