How would I define this array to values i want to specify?
index[4][4]={1, 0, 0, 0}
{0, 1, 0, 0}
{0, 0, 1, 0}
{-tx, -ty, -tz, 1};
I get errors when i try to do it this way.
This is a discussion on multi dimensional array definition within the C Programming forums, part of the General Programming Boards category; How would I define this array to values i want to specify? index[4][4]={1, 0, 0, 0} {0, 1, 0, 0} ...
How would I define this array to values i want to specify?
index[4][4]={1, 0, 0, 0}
{0, 1, 0, 0}
{0, 0, 1, 0}
{-tx, -ty, -tz, 1};
I get errors when i try to do it this way.
Code:index[4][4]={ {1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {-tx, -ty, -tz, 1} };