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
3
#include "
Math/Color/TTristimulusSpectrum.h
"
4
5
namespace
ph::math
6
{
7
8
template
<EColorSpace COLOR_SPACE,
typename
T>
9
inline
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
13
template
<EColorSpace COLOR_SPACE,
typename
T>
14
template
<
typename
U>
15
inline
TTristimulusSpectrum<COLOR_SPACE, T>::TTristimulusSpectrum
(
const
TTristimulusSpectrum<COLOR_SPACE, U>
& other) :
16
TTristimulusSpectrum
(
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
TTristimulusSpectrum.h
ph::math::TSpectrumBase< TTristimulusSpectrum< COLOR_SPACE, T >, COLOR_SPACE, T, 3 >
ph::math::TTristimulusSpectrum
Definition
TTristimulusSpectrum.h:11
ph::math::TTristimulusSpectrum::TTristimulusSpectrum
TTristimulusSpectrum()=default
ph::math
Math functions and utilities.
Definition
TransformInfo.h:10
std
Definition
TAABB2D.h:96
Source
Math
Color
TTristimulusSpectrum.ipp
Generated by
1.11.0