You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presently, vec<T,M> is only defined for M equal to 2, 3, or 4, and mat<T,M,N> is only defined for M and N equal to 2, 3, or 4. This is mainly to allow for the presence of member variables x, y, z, and w when appropriate, and to allow for construction using the {x,y,z} syntax.
Should we also provide a general implementation of vec and mat which would handle sizes greater than four? These could simply use a backing array (or perhaps std::array). They would not support element access with .x, .y, etc., but would support access by array index, as well as all other functions and operators.
The text was updated successfully, but these errors were encountered:
Any update on this? I have tried myself, but it is very hard to implement properly the constructor {elms} syntax. I would love to see how this could be done for both vectors and matrices.
This is critical functionality that I would love to have, even if the general case drops the presence of member variables x, y, z, and w or the curly brace constructor syntax.
Presently,
vec<T,M>
is only defined forM
equal to 2, 3, or 4, andmat<T,M,N>
is only defined forM
andN
equal to 2, 3, or 4. This is mainly to allow for the presence of member variablesx
,y
,z
, andw
when appropriate, and to allow for construction using the{x,y,z}
syntax.Should we also provide a general implementation of
vec
andmat
which would handle sizes greater than four? These could simply use a backing array (or perhaps std::array). They would not support element access with.x
,.y
, etc., but would support access by array index, as well as all other functions and operators.The text was updated successfully, but these errors were encountered: