# 2D Transformation Query

This topic is 5043 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
Rutin
18
4. 4
5. 5
JoeJ
13

• 14
• 10
• 25
• 9
• 57
• ### Forum Statistics

• Total Topics
632640
• Total Posts
3007618
• ### Who's Online (See full list)

There are no registered users currently online

×