Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
TTristimulusSpectrum.ipp
Go to the documentation of this file.
1#pragma once
2
4
5namespace ph::math
6{
7
8template<EColorSpace COLOR_SPACE, typename T>
9inline TTristimulusSpectrum<COLOR_SPACE, T>::TTristimulusSpectrum(const T c0, const T c1, const T c2) :
10 Base(std::array<T, 3>{c0, c1, c2})
11{}
12
13template<EColorSpace COLOR_SPACE, typename T>
14template<typename U>
17 static_cast<T>(other[0]),
18 static_cast<T>(other[1]),
19 static_cast<T>(other[2]))
20{}
21
22}// end namespace ph::math
Definition TTristimulusSpectrum.h:11
Math functions and utilities.
Definition TransformInfo.h:10
Definition TAABB2D.h:96