amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 20 Aug 2016 05:49 AM |
local _, _, _, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components();
I've seen that a lot. I don't understand the naming convention.
matrix version: m00 m01 m02 m10 m11 m12 m20 m21 m22
Why does it add 10 when going down rows?
Anyone know? |
|
|
| Report Abuse |
|
|
| 20 Aug 2016 05:53 AM |
| Prob cuz mxy where x is row # and y is column # |
|
|
| Report Abuse |
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 20 Aug 2016 06:00 AM |
Thank you so much, that makes infinite sense.
creating variables and naming them after location in a table.
0 1 2 0 a b c 1 d e f 2 g h i
a = m00 h = m21
The naming convention makes it easier because you don't have to worry about remembering ambiguous or complicated variable names, they state their position in relation to each other.
Think I got it. |
|
|
| Report Abuse |
|