#pragma once #include #include "../shape/Shape.h" #include "SvgState.h" class LineTo { public: static std::vector> absolute(SvgState& state, std::vector& args); static std::vector> relative(SvgState& state, std::vector& args); static std::vector> horizontalAbsolute(SvgState& state, std::vector& args); static std::vector> horizontalRelative(SvgState& state, std::vector& args); static std::vector> verticalAbsolute(SvgState& state, std::vector& args); static std::vector> verticalRelative(SvgState& state, std::vector& args); private: static std::vector> parseLineTo(SvgState& state, std::vector& args, bool isAbsolute, bool isHorizontal, bool isVertical); };