mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 23:13:26 +00:00
added tests for color fixed matrix move operator
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user