SceneSwitcher/lib/utils/math-helpers.hpp
Przemek Pawlas 01cf000cbe Refactor
* Minor style changes
* Move function definitions
* Split utility.hpp
* Enable include of export-symbol-helper.hpp in tests
2024-02-24 16:47:50 +01:00

18 lines
469 B
C++

#pragma once
#include "export-symbol-helper.hpp"
#include <string>
#include <variant>
#include <optional>
namespace advss {
std::variant<double, std::string>
EvalMathExpression(const std::string &expression);
bool IsValidNumber(const std::string &str);
EXPORT std::optional<double> GetDouble(const std::string &str);
EXPORT std::optional<int> GetInt(const std::string &str);
EXPORT bool DoubleEquals(double left, double right, double epsilon);
} // namespace advss