33#include <NDEVR/Vector.h>
60 clip(x, 0.0f, 0.9505f)
72 m_values[
X] = (x > 0.9505f) ? 0.9505f : ((x < 0.0f) ? 0.0f : x);
76 m_values[
Y] = (y > 1.0000f) ? 1.0000f : ((y < 0.0f) ? 0.0f : y);
80 m_values[
Z] = (z > 1.0890f) ? 1.0890f : ((z < 0.0f) ? 0.0f : z);
88 static XYZColor D65(95.047f, 100.0f, 108.883f);
ACI colors are the standard colors used in AutoCAD-based products. Each color is identified by an ACI...
Definition ACIColor.h:58
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
An element of a vector space. An element of the real coordinate space Rn Basis vector,...
Definition Vector.hpp:62
fltp04 m_values[t_dims]
Definition Vector.hpp:675
constexpr XYZColor(fltp04 x, fltp04 y, fltp04 z, fltp04 a=1.0f)
Definition XYZColor.h:58
void setZ(fltp04 z)
Definition XYZColor.h:78
void setX(fltp04 x)
Definition XYZColor.h:70
constexpr XYZColor(const Vector< 4, fltp04 > &color)
Definition XYZColor.h:55
void setA(fltp04 a)
Definition XYZColor.h:82
static XYZColor getD65()
Definition XYZColor.h:86
void setY(fltp04 y)
Definition XYZColor.h:74
constexpr XYZColor()
Definition XYZColor.h:52
constexpr t_type clip(const t_type &value, const t_type &lower_bound, const t_type &upper_bound)
Clips the value given so that that the returned value falls between upper and lower bound.
Definition BaseFunctions.hpp:240
float fltp04
Defines an alias representing a 4 byte floating-point number.
Definition BaseValues.hpp:157
@ Y
Definition BaseValues.hpp:202
@ X
Definition BaseValues.hpp:200
@ Z
Definition BaseValues.hpp:204
@ W
Definition BaseValues.hpp:206
Definition BaseValues.hpp:272