#include <array>
template <typename T>
class Vector4<T> {
std::array<T, 4> _a; // or 'T _a[4];'?
};
template <typename T>
class Matrix4<T> {
std::array<T, 16> _a; // or 'T _a[16];'?
//Vector4<T> row0; // or should i use this instead
//Vector4<T> row1; // it makes other code easier but how
//Vector4<T> row2; // can i implement something like
//Vector4<T> row3; // std::array::data()?
};
спасибо
edit: да, это для программирования 3D-игр ... так что мне понадобится больше, чем просто матрица усиления, которая может обеспечить вращение, перевод и инвертирование и т.д.