[ox/std] Cleanup Vec2
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
Gary Talent 2024-12-15 01:26:10 -06:00
parent dc07f3d58b
commit 4754359a21
2 changed files with 2 additions and 17 deletions

View File

@ -6,15 +6,13 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#include <ox/std/defines.hpp>
#include "vec.hpp"
namespace ox {
static_assert([] {
Vec2 v(1, 2);
return v.x == 1 && v.y == 2 && v.size() == 2;
return v.x == 1 && v.y == 2;
}());
}

View File

@ -12,13 +12,9 @@
#include <imgui.h>
#endif
#include <ox/model/def.hpp>
#include <ox/std/assert.hpp>
#include <ox/std/bit.hpp>
#include <ox/std/concepts.hpp>
#include <ox/std/def.hpp>
#include <ox/std/error.hpp>
#include <ox/std/iterator.hpp>
#include <ox/std/math.hpp>
#include <ox/std/types.hpp>
namespace ox {
@ -61,15 +57,6 @@ class Vec2 {
return !operator==(v);
}
explicit constexpr operator class Point() const noexcept;
explicit constexpr operator class Size() const noexcept;
[[nodiscard]]
constexpr std::size_t size() const noexcept {
return 2;
}
constexpr Vec2 operator+(float i) const noexcept {
return {x + i, y + i};
}