Matrix Multiplication bug and workaround

Alejandro Tejada capellan2000 at gmail.com
Sun Jul 30 18:30:00 EDT 2017


Hi Hermann,

Hermann wrote:
> This is not a bug, your script is wrong.
> If TM is a,b,c,d,e,f then you have to d
>   put item 1 of pArgs into tMatrix[0,0]
>   put item 2 of pArgs into tMatrix[1,0]
>   put item 3 of pArgs into tMatrix[0,1]
>   put item 4 of pArgs into tMatrix[1,1]
> this yields correct results.
> [In fact your 'workaround' corrects the wrong script part]

Now I understand:

This transformation matrix:
1,0.6,-1.2,1,40,10
should be stored like this:

[0,0]  [0,1]  [0,2]
  a       c       e
  1    -1.2     40

[1,0]  [1,1]  [1,2]
  b       d       f
 0.6     1      10

[2,0]  [2,1]  [2,2]
  0       0       1

I will delete my bug report.
Thanks again Hermann for
taking a close look at this.

Have a nice week!

Al



More information about the use-livecode mailing list