#include "svg_renderer.hpp" #include "math/constants.hpp" #include SvgRenderer::SvgRenderer(size_t width, size_t height) : m_width{width}, m_height{height} { // white bg m_out << " " << std::endl; } void SvgRenderer::DrawLine(const math::Vector& p0, const math::Vector& p1) { m_out << " " << std::endl; } void SvgRenderer::DrawRectangle(const math::Vector& pos, const math::Vector& size, float angle) { float angleDeg = angle * math::RAD_TO_DEG; m_out << " " << std::endl; } void SvgRenderer::DrawCircle(const math::Vector& center, float radius) { m_out << " " << std::endl; } void SvgRenderer::Save(const std::filesystem::path& path) { std::ofstream file{path}; if (!file.is_open()) { throw std::runtime_error{"Cannot open file for writing: " + path.string()}; } file << "" << std::endl; file << m_out.str(); file << "" << std::endl; }