mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 03:59:19 +02:00
refactor(editor): shared plan geometry and formatting helpers
This commit is contained in:
@@ -9,6 +9,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "editor/editorProfile.hpp"
|
||||
#include "editor/editorFormat.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
@@ -21,14 +22,6 @@ namespace profile
|
||||
namespace
|
||||
{
|
||||
|
||||
template <typename... Args>
|
||||
std::string format(char const *Format, Args... Arguments)
|
||||
{
|
||||
char text[256];
|
||||
std::snprintf(text, sizeof(text), Format, Arguments...);
|
||||
return text;
|
||||
}
|
||||
|
||||
double polyline(line const &Line, double const Chainage)
|
||||
{
|
||||
auto const &points{Line.points};
|
||||
|
||||
Reference in New Issue
Block a user