35 vec4(
double a0,
double a1,
double a2,
double a3) :
x(a0),
y(a1),
z(a2),
w(a3)
98 return x == o.
x &&
y == o.
y &&
z == o.
z &&
w == o.
w;
104 return vec4(
r * v,
g * v,
b * v,
a * v);
110 return vec4(
r + v.r,
g + v.g,
b + v.b,
a + v.a);
116 return std::string(
"{") + std::to_string(
x) + std::string(
",") + std::to_string(
y) +
117 std::string(
",") + std::to_string(
z) + std::string(
",") + std::to_string(
w) +
156 template <
class Value,
class MinMax>
157 typename std::common_type<Value, MinMax>::type
174 template <
class Value>
182 else if ((Value)0 < v)
201 return std::fmod(
x, y);
215 static std::vector<std::shared_ptr<Colormap const>>
228 ColormapList(ColormapList
const&) =
delete;
229 ColormapList(ColormapList&&) =
delete;
230 ColormapList& operator=(ColormapList
const&) =
delete;
231 ColormapList& operator=(ColormapList&&) =
delete;
static std::vector< std::shared_ptr< Colormap const > > getAll()
local_real_t abs(local_real_t v) const
std::common_type< Value, MinMax >::type clamp(Value v, MinMax min, MinMax max) const
local_real_t mod(local_real_t x, local_real_t y) const
Value sign(Value v) const
virtual std::string getSource() const =0
virtual std::string getCategory() const =0
virtual std::string getTitle() const =0
virtual Color getColor(double x) const =0
This file offers overloads of toIce() and fromIce() functions for STL container types.
This file was automatically created with "create_c++_header.sh".
double & operator[](size_t index)
double operator[](size_t index) const
vec4 operator*(double v) const
vec4(double a0, double a1, double a2, double a3)
std::string to_string() const
vec4 operator+(vec4 const &v) const
bool operator==(vec4 const &o) const