pathfinding_demo/cpp/src/camera.cpp
2025-10-04 17:10:20 +02:00

17 lines
330 B
C++

#include "camera.hpp"
#include "math.hpp"
// for now only pass-through placeholder functions,
// since we draw the whole map
WindowPos Camera::WorldToWindow(WorldPos world) const
{
return WindowPos{world[0], world[1]};
}
WorldPos Camera::WindowToWorld(WindowPos window) const
{
return WorldPos{window[0], window[1]};
}