added tests for color fixed matrix move operator

This commit is contained in:
2024-09-02 13:57:30 +03:00
parent 9a3a4214b8
commit b78a2e2747
7 changed files with 138 additions and 5 deletions

View File

@@ -131,4 +131,11 @@ namespace omath
{
return x + y + z + w;
}
Vector4::Vector4()
{
x = 0.f;
y = 0.f;
z = 0.f;
}
}

View File

@@ -95,4 +95,9 @@ namespace omath::color
return hsvData;
}
Color::Color() : Vector4(0.f, 0.f, 0.f, 0.f)
{
}
}

View File

@@ -200,6 +200,9 @@ namespace omath
m_columns = other.m_columns;
m_data = std::move(other.m_data);
other.m_rows = 0.f;
other.m_columns = 0.f;
return *this;
}