mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
added color stuff
This commit is contained in:
@@ -2,4 +2,5 @@ target_sources(uml PRIVATE
|
||||
Vector3.cpp
|
||||
matrix.cpp
|
||||
angles.cpp
|
||||
ProjectilePredictor.cpp)
|
||||
ProjectilePredictor.cpp
|
||||
color.cpp)
|
||||
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