logo back up home forward   further reading more topics »

Maths - Types of 2 Dimensional Matrix Transforms

Here are some examples of 2 dimensional transforms and their corresponding 2x2 matrices.

I have noted whether the matrix is symmetric or anti-symmetric across the leading diagonal. As you can see, rotation is anti-symmetric across the leading diagonal but symmetric along the diagonal, reflection is symmetric across the leading diagonal but anti-symmetric along the diagonal. This is not necessarily the case for 3D transforms here.

1 0
0 1

Identity

(symmetric)

a 0
0 a

Scale

(symmetric)

0 1
1 0

Swap x and y axes, which is the same as reflecting in a 45° line

(symmetric)

0 -1
1 0

Swap x and y axes and invert y, which is the same as rotating by 90°

(anti-symmetric)

cos(θ) -sin(θ)
sin(θ) cos(θ)

Rotate by angle θ

(anti-symmetric - but symmetric along the leading diagonal)

-1 0
0 1
Reflection in x axis
-x2 + y2 - 2 * x * y
- 2 * y * x -y2 + x2

Reflection in line x,y (see this page)

(symmetric - but anti-symmetric along the leading diagonal)

   

metadata block
see also:
Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

cover Mathematics for 3D game Programming - Includes introduction to Vectors, Matrices, Transforms and Trigonometry. (But no euler angles or quaternions). Also includes ray tracing and some linear & rotational physics also collision detection (but not collision response).

Other Math Books

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to the software project, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

Matlab.

Can you help?

Please send me any improvements to here. I would appreciate ideas to make the pages more useful including error correction, ideas for new pages, improvements to wording. It helps if you quote the full URL of the page.

 

Terminology and Notation

Specific to this page here:

 

program

I am working on a project which uses these principles, if you would like to help me with this you are welcome to join in, here:

http://sourceforge.net/projects/mjbworld/

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2008 Martin John Baker - All rights reserved - privacy policy.