Definition at line 165 of file ControlValue.hpp.
166 {
167 std::array<double, k_lanes> lanes {};
169 for (size_t index = 0; index < glm_component_count<T>(); ++index) {
170 lanes[index] =
value[
static_cast<glm::length_t
>(index)];
171 }
174 } else if constexpr (std::is_enum_v<T>) {
175 lanes[0] =
static_cast<double>(
static_cast<std::underlying_type_t<T>
>(
value));
176 } else {
177 lanes[0] =
static_cast<double>(
value);
178 }
179 return lanes;
180 }
double value() const noexcept
The value as a double.
static constexpr bool is_box
static constexpr bool is_vector
References is_box, is_vector, and value().
Referenced by ControlValue(), and observe().