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

@@ -13,7 +13,7 @@ namespace omath
float w = 0.f;
Vector4(const float x = 0.f, const float y = 0.f, const float z = 0.f, const float w = 0.f) : Vector3(x, y, z), w(w) {}
Vector4() = default;
Vector4();
[[nodiscard]]
bool operator==(const Vector4& src) const;

View File

@@ -21,11 +21,11 @@ namespace omath::color
[[nodiscard]]
Vector3 Blend(const Vector3& first, const Vector3& second, float ratio);
class Color : public Vector4
class Color final : public Vector4
{
public:
Color(float r, float g, float b, float a);
explicit Color();
[[nodiscard]]
static Color FromRGBA(uint8_t r, uint8_t g, uint8_t b, uint8_t a);