concept transformation in category python

appears as: trsformations, trsformation, transformation, The trsformation, trsformations
Math for Programmers: 3D graphics, machine learning, and simulations with Python

This is an excerpt from Manning's book Math for Programmers: 3D graphics, machine learning, and simulations with Python.

Our applications will soon take us past cartoon dinosaurs: there are plenty of other operations on vectors and many generalize to higher dimensions. Real-world data sets often live in dozens or hundreds of dimensions, so we’ll apply the same kinds of transformations to these as well. It’s often useful to both translate and rotate data sets to make their important features clearer. We won’t be able to picture rotations in 100 dimensions, but we can always think of two dimensions as a trusty metaphor.

Solution: Using [(x,y,2) for x,y in dino_vectors] and applying the same 3x3 matrix, the dinosaur is translated twice as far by the vector (6, 2) instead of (3, 1). This is because the vector (0, 0, 1) is translated by (3, 1), and the transformation is linear.