codingecho

日々の体験などを書いてます

Rotation and shear mapping of Linear algebra

I created simple examples of the rotation and shear mapping of linear algebra for understanding.

My examples this repository.

This visualized example was very helpful for understanding eigenvectors and eigenvalues.

Rotation

The rotation uses below rotation matrix. f:id:ytanak:20190114111030p:plain

A rotated vector is represented like this;

f:id:ytanak:20190114111101p:plain

E.g.

f:id:ytanak:20190114111120p:plain

Example

This is my example code.

Origin image here.

original image

Rotate it 90 degrees.

ratated

Shear mapping

The shear mapping uses below matrix.

f:id:ytanak:20190114111138p:plain

A sheer mapping vector is represented like this;

f:id:ytanak:20190114111151p:plain

E.g.

f:id:ytanak:20190114111209p:plain

The x-axis of the vecter is increased, but the y-axis is not changed. Any other vectors are the same behaviou​r​, only the x-a​xis values are changed.

Example

This is my example code.

Sheard image.

sheard image