mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
added tests for color fixed matrix move operator
This commit is contained in:
@@ -131,4 +131,11 @@ namespace omath
|
||||
{
|
||||
return x + y + z + w;
|
||||
}
|
||||
|
||||
Vector4::Vector4()
|
||||
{
|
||||
x = 0.f;
|
||||
y = 0.f;
|
||||
z = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,4 +95,9 @@ namespace omath::color
|
||||
|
||||
return hsvData;
|
||||
}
|
||||
|
||||
Color::Color() : Vector4(0.f, 0.f, 0.f, 0.f)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user