Minor fixes to Vector4

This commit is contained in:
Aaron Franke
2022-09-04 20:16:59 -05:00
parent e7a0a97c0b
commit 058ac331b0
5 changed files with 25 additions and 10 deletions

View File

@ -84,8 +84,10 @@ Vector4i::operator Vector4() const {
}
Vector4i::Vector4i(const Vector4 &p_vec4) {
x = p_vec4.x;
y = p_vec4.y;
z = p_vec4.z;
w = p_vec4.w;
x = (int32_t)p_vec4.x;
y = (int32_t)p_vec4.y;
z = (int32_t)p_vec4.z;
w = (int32_t)p_vec4.w;
}
static_assert(sizeof(Vector4i) == 4 * sizeof(int32_t));