mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 15:03:27 +00:00
added color stuff
This commit is contained in:
13
source/color.cpp
Normal file
13
source/color.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// Created by vlad on 2/4/24.
|
||||
//
|
||||
|
||||
#include "uml/color.h"
|
||||
|
||||
namespace uml::color
|
||||
{
|
||||
Vector3 Blend(const uml::Vector3 &first, const uml::Vector3 &second, float ratio)
|
||||
{
|
||||
return first * (1.f - ratio) + second * ratio;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user