MathLib
Loading...
Searching...
No Matches
lib
include
Math
color
Palette.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Math/math/Vector3D.hpp
>
4
#include <cstdlib>
5
#include <numbers>
6
14
namespace
Color
15
{
16
29
template
<std::
float
ing_po
int
T>
30
Math::BasicVector3D<T>
palette
(T
t
,
31
Math::BasicVector3D<T>
a,
32
Math::BasicVector3D<T>
b,
33
Math::BasicVector3D<T>
c
,
34
Math::BasicVector3D<T>
d
)
35
{
36
return
a + b * std::cos( 2 * std::numbers::pi_v<T> * (
c
*
t
+
d
) );
37
}
38
39
}
Vector3D.hpp
Color::BasicHSV
Definition
Types.hpp:775
Color
Definition
Conversions.hpp:22
Color::palette
Math::BasicVector3D< T > palette(T t, Math::BasicVector3D< T > a, Math::BasicVector3D< T > b, Math::BasicVector3D< T > c, Math::BasicVector3D< T > d)
Definition
Palette.hpp:30
Math::BasicVector3D
Definition
Vector3D.hpp:26
Generated by
1.9.8