Function convert_from_arma_vector
Defined in File utils.hpp
Function Documentation
-
std::vector<std::array<float, 2>> convert_from_arma_vector(const std::vector<arma::vec2> &arma_vector)
Converts a vector of arma::vec2 to a vector of std::array<float, 2>.
This function is the inverse of convert_to_arma_vector(). It transforms an Armadillo-style 2D vector into a standard C++ representation using arrays of floats.
- Parameters:
arma_vector – The input vector containing arma::vec2 elements.
- Returns:
std::vector<std::array<float, 2>> The converted vector in standard format.