i need create a especific array type: Matrix4X4. but is like:
can i create a type, using typedef or something, for what i need?
typedef array Matrix4X4;
Projection = 100;
ok.. that line is wrong but is for help what i need.
Last edited on
using Matrix4x4 = float;
typedef float Matrix4x4;
There's also Eigen, which already has a bunch of matrix types and linear algebra operations implemented.
The 'typedef' and 'using' do not create "new type"; they define an alias -- an another, more convenient name -- for the existing type.
I'd guess that the four by four here is about 3D graphics transformations. There definitely are libraries/frameworks for that too.