36 template <
size_t M,
typename T>
37 inline glm::vec<M, T>
toGlmVec(
const std::array<T, M>& input)
40 memcpy(glm::value_ptr(vec), input.data(), input.size() *
sizeof(T));
44 template <
size_t M,
typename T>
45 inline std::array<T, M>
toArray(
const glm::vec<M, T>& input)
47 std::array<T, M> output;
48 memcpy(output.data(), glm::value_ptr(input), M *
sizeof(T));
79 template <
typename To,
typename From>
std::array< T, M > toArray(const glm::vec< M, T > &input)
strings parseFolder(const std::string &folder, const strings &filters)
To lexical_cast(const From &from)
Function template taking two template parameters (To and From) representing the source and target typ...
Vector3fs getRainbowColormap(const uint32_t colormapSize)
Get the Rainbow Colormap.
std::vector< Vector4f > Vector4fs
glm::vec< M, T > toGlmVec(const std::array< T, M > &input)
std::vector< Vector3f > Vector3fs
Vector4f getBezierPoint(const Vector4fs &controlPoints, const float t)
Get the Bezier Point from a curve defined by the provided control points.
std::string extractExtension(const std::string &filename)