Files
EVEngine/src/modules/map/TileProjection.h
T
西风逍遥游 4377e062dd feat: zeroerr parameter validation + Doxygen API documentation
Squashed onto current main. Adds src/engine/common/Assert.h (EV_PARAM_CHECK / EV_ASSERT backed by zeroerr), an EVENGINE_ENABLE_ASSERTS option (non-Debug builds strip ZEROERR_NO_ASSERT unless enabled), parameter checks at key entry points, Doxygen comments across headers, Doxyfile + make docs / CMake docs targets, and Windows setup + code conventions in AGENTS.md.
2026-08-19 09:01:12 +08:00

16 lines
597 B
C++

#pragma once
#include "map/TileOrientation.h"
#include "map/TileLayer.h"
namespace eve::map {
/** @brief Converts a tile index to world pixels using the layer's projection. */
void tileToWorld(const TileLayer::Config &cfg, int tx, int ty, float &wx, float &wy);
/** @brief Painter's-algorithm depth for the tile under the layer's projection. */
float tileToDepthY(const TileLayer::Config &cfg, int tx, int ty);
/** @brief Converts world pixels back to the containing tile index. */
void worldToTile(const TileLayer::Config &cfg, float wx, float wy, int &tx, int &ty);
} // namespace eve::map