mirror of
https://github.com/AxioDL/zeus.git
synced 2025-12-16 08:27:11 +00:00
CVector2i: Make CVector2f-related constructor non-constexpr
These make use of SIMD accessors, which aren't constexpr.
This commit is contained in:
@@ -14,7 +14,7 @@ public:
|
|||||||
|
|
||||||
constexpr CVector2i(int32_t xin, int32_t yin) noexcept : x(xin), y(yin) {}
|
constexpr CVector2i(int32_t xin, int32_t yin) noexcept : x(xin), y(yin) {}
|
||||||
|
|
||||||
constexpr CVector2i(const CVector2f& vec) noexcept : x(int32_t(vec.x())), y(int32_t(vec.y())) {}
|
CVector2i(const CVector2f& vec) noexcept : x(int32_t(vec.x())), y(int32_t(vec.y())) {}
|
||||||
|
|
||||||
constexpr CVector2f toVec2f() const noexcept { return CVector2f(float(x), float(y)); }
|
constexpr CVector2f toVec2f() const noexcept { return CVector2f(float(x), float(y)); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user