mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 15:03:27 +00:00
added color
This commit is contained in:
@@ -3,11 +3,20 @@
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "uml/Vector3.h"
|
||||
#include <cstdint>
|
||||
#include "uml/Vector4.h"
|
||||
|
||||
|
||||
namespace uml::color
|
||||
{
|
||||
[[nodiscard]]
|
||||
Vector3 Blend(const Vector3& first, const Vector3& second, float ratio);
|
||||
|
||||
class Color : public Vector4
|
||||
{
|
||||
public:
|
||||
[[nodiscard]] Color Blend(const Color& other, float ratio) const;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user