diff --git a/include/mqt-core/na/entities/Location.hpp b/include/mqt-core/na/entities/Location.hpp index c5e57c353..60951f93f 100644 --- a/include/mqt-core/na/entities/Location.hpp +++ b/include/mqt-core/na/entities/Location.hpp @@ -20,7 +20,31 @@ namespace na { struct Location final { double x = 0; double y = 0; + Location(const float x, const float y) + : x(static_cast(x)), y(static_cast(y)) {}; Location(const double x, const double y) : x(x), y(y) {}; + Location(const std::int32_t x, const std::int32_t y) + : x(static_cast(x)), y(static_cast(y)) {}; + Location(const std::int64_t x, const std::int64_t y) + : x(static_cast(x)), y(static_cast(y)) {}; + Location(const std::uint32_t x, const std::uint32_t y) + : x(static_cast(x)), y(static_cast(y)) {}; + Location(const std::uint64_t x, const std::uint64_t y) + : x(static_cast(x)), y(static_cast(y)) {}; + Location(const std::size_t x, const std::size_t y) + : x(static_cast(x)), y(static_cast(y)) {}; + Location(const std::pair p) : Location(p.first, p.second) {}; + Location(const std::pair p) : Location(p.first, p.second) {}; + Location(const std::pair p) + : Location(p.first, p.second) {}; + Location(const std::pair p) + : Location(p.first, p.second) {}; + Location(const std::pair p) + : Location(p.first, p.second) {}; + Location(const std::pair p) + : Location(p.first, p.second) {}; + Location(const std::pair p) + : Location(p.first, p.second) {}; Location() = default; Location(const Location& loc) = default; Location(Location&& loc) noexcept = default;