We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
They called me a mad man. Single pass, 1 nested loop, let's goooooooooo!
So, what we are doing, since we already have the matrix, is calculating the location of the number from the original matrix that should fall on the position we are currently printing. So, instead of transforming the matrix, we are kind of going in the oposite directioin and figuring out what number would be where in the final matrix rather than transforming it.
(The amount of times those ifs were tweaked is not up for discussion.)
Matrix Layer Rotation
You are viewing a single comment's thread. Return to all comments →
They called me a mad man. Single pass, 1 nested loop, let's goooooooooo!
So, what we are doing, since we already have the matrix, is calculating the location of the number from the original matrix that should fall on the position we are currently printing. So, instead of transforming the matrix, we are kind of going in the oposite directioin and figuring out what number would be where in the final matrix rather than transforming it.
(The amount of times those ifs were tweaked is not up for discussion.)
Also, do beware, this is not a pretty sight.