mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-16 01:08:56 +00:00
HPL1: make Vector2 constructors constexpr
This commit is contained in:
parent
13b899b8e4
commit
72c336296f
@ -48,22 +48,16 @@ public:
|
||||
//////////////////////////////////////////
|
||||
// Constructors
|
||||
/////////////////////////////////////////
|
||||
cVector2() {
|
||||
x = 0;
|
||||
y = 0;
|
||||
}
|
||||
cVector2(T aVal) {
|
||||
x = aVal;
|
||||
y = aVal;
|
||||
}
|
||||
cVector2(T aX, T aY) {
|
||||
x = aX;
|
||||
y = aY;
|
||||
constexpr cVector2() : x(0), y(0) {
|
||||
}
|
||||
|
||||
cVector2(cVector2<T> const &aVec) {
|
||||
x = aVec.x;
|
||||
y = aVec.y;
|
||||
constexpr cVector2(T aVal) : x(aVal), y(aVal) {
|
||||
}
|
||||
|
||||
constexpr cVector2(T aX, T aY) : x(aX), y(aY) {
|
||||
}
|
||||
|
||||
constexpr cVector2(cVector2<T> const &aVec) : x(aVec.x), y(aVec.y) {
|
||||
}
|
||||
|
||||
//////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user