mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-08 17:45:57 -05:00
Add math helpers
This commit is contained in:
9
src/utils/math-helpers.hpp
Normal file
9
src/utils/math-helpers.hpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <variant>
|
||||
#include <optional>
|
||||
|
||||
std::variant<double, std::string>
|
||||
EvalMathExpression(const std::string &expression);
|
||||
bool IsValidNumber(const std::string &);
|
||||
std::optional<double> GetDouble(const std::string &);
|
||||
Reference in New Issue
Block a user