Minor fixes to Vector4
This commit is contained in:
parent
e7a0a97c0b
commit
058ac331b0
5 changed files with 25 additions and 10 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue