News for hackers. Stuff that matters.
Re:Affine transformations by dahart on Wednesday January 10, 2018 @10:14AM (#16115452)
Nice article, but a tiny bit weird that it calls affine transforms categorically non-linear, and then shows an affine matrix, which is linear by definition.

Affine transforms are linear intermediate transforms in one dimension higher than the source & target spaces. They're intuitively (rather than algebraically) non-linear because we move from 2d to 3d then back, or from 3d to 4d then back.

It can be helpful to think of the translation as a (linear) skew in the added extra dimension.

Re:Affine transformations by FabHK on Wednesday January 10, 2018 @11:52AM (#16116515)
For linear functions (in the article's second, linear algebra sense), the image of zero must be zero, and that doesn't hold for (most) affine functions, so makes sense.

Note that he shows the trick of making affine functions linear by tacking on one more dimension.

Re:Affine transformations by dahart on Wednesday January 10, 2018 @12:20PM (#16116800)
> the image of zero must be zero, and that doesn't hold for (most) affine functions

It does hold, always, in the higher dimension. And I feel like that's the most important thing to clearly understand about affine transforms. The entire beauty of the augmented matrix is that you get a class of non-linear transforms in 3d by using linear transforms in 4d. The article was nice, I'm nit picking something that was nearly there. It'd just be nice to be one teensy bit more explicit about what's going on here.

Re:Affine transformations by syndev on Wednesday January 10, 2018 @12:44PM (#16117065)
But affine transformations are indeed not linear. The augmentation trick creates a new, linear transform in n+1 dimension, which is related but different to the affine transform in question.

The categorization in the article seems correct.

Re:Affine transformations by dahart on Wednesday January 10, 2018 @01:39PM (#16117596)
Yes, exactly, you're right. The article is correct, it's just not telling quite the whole story. Affine transforms aren't linear, and their augmented matrices that do the same thing are linear. In practice, it's both, and it's precisely cool because it's both.