# 2D Transformation Query

This topic is 4950 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hey chaps, very quick 2D transformation matrix question: Say I have some 3x3 transformation matrix, and I want to basically "zero" the translation only (I want it to keep all the rotation and scaling and such info in tact). How would I go about doing this?

##### Share on other sites
I think I've answered my own question here:

I'm basically wanting the vector (0,0) to translate to (0,0).

So if I translate (0,0) by the orginal matrix, I'll get some vector (x,y). Now if I do a translation operation on my matrix with the vector (-x,-y), It'll translate itself back to the origin (and (0,0) will transform to (0,0)).

Yes?

##### Share on other sites
[ a b c ] * [ x ][ d e f ]   [ y ][ 0 0 1 ]   [ 1 ]= [ x * a + y * b + c   d * x + e * y + f   1 ]

Just set c and f to 0.

1. 1
2. 2
3. 3
4. 4
Rutin
16
5. 5

• 12
• 9
• 12
• 37
• 12
• ### Forum Statistics

• Total Topics
631414
• Total Posts
2999964
×