MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ read_components()

template<typename T >
std::array< double, estimate_component_count_v< T > > MayaFlux::Kinesis::read_components ( const T &  value)
inlinenoexcept

Read T's components into an array of doubles.

Definition at line 57 of file MotionChannel.hpp.

58{
59 std::array<double, estimate_component_count_v<T>> out {};
60 if constexpr (GlmType<T>) {
61 for (size_t i = 0; i < estimate_component_count_v<T>; ++i)
62 out[i] = static_cast<double>(value[static_cast<glm::length_t>(i)]);
63 } else {
64 out[0] = static_cast<double>(value);
65 }
66 return out;
67}
float value

References value.

Referenced by MayaFlux::Kinesis::MotionChannel< T >::update().

+ Here is the caller graph for this function: