mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
srb2::math::Vec2: constexpr constructors
This commit is contained in:
parent
29c92b8c31
commit
aa00359ab2
1 changed files with 3 additions and 3 deletions
|
|
@ -22,9 +22,9 @@ struct Vec2
|
|||
{
|
||||
T x, y;
|
||||
|
||||
Vec2() : x{}, y{} {}
|
||||
Vec2(T x_, T y_) : x(x_), y(y_) {}
|
||||
Vec2(T z) : x(z), y(z) {}
|
||||
constexpr Vec2() : x{}, y{} {}
|
||||
constexpr Vec2(T x_, T y_) : x(x_), y(y_) {}
|
||||
constexpr Vec2(T z) : x(z), y(z) {}
|
||||
|
||||
template <typename U>
|
||||
Vec2(const Vec2<U>& b) : Vec2(b.x, b.y) {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue