Compound transformation equivivalent in C#

It seems the multiplication way needs the scale to be plugged first, then move. The compound component needs move first, then scale. Then the results are the same. Which one is the correct logic?

To me the compound component seems correct. First you move up 10, then you scale by the origin at .5 (so the box is now half the size and positioned at 5 units height. because it scaled at .5 towards the origin).

If you plug the multiplication way as move then scale like the compound way then the box goes up 10 units but then scales toward the origin, but maintains its height of 10 units.

Really not sure whats the correct logic. Both kind of make sense in some way.


CompoundXformTest2.gh (12.0 KB)