b2XForm Question

Hello!

I just have a small question; looked through the manual, wiki, and source of Box2D back and forth but to no avail. (Not to say it wasn't a good read~)

What does the struct 'b2XForm' do, exactly..?
I understand it's members are a vector and a 2x2 matrix, but I'm at a lose for what they're used for inside Box2D. I'm assuming the 2x2 matrix is for rotations, and the vector is for the position, but I could never really confirm that anywhere.

Probably just a newb question with a simple answer, but it's been buggin' me for a while now. Thank's for your time in advance!

(Oh, and not to be sappy, but thank you so verily much for this terrific physics library, Prof. Catto! It's quite literally the best thing since Box1D.) [/lame]
Yeah, that is the body's world transform: rotation + position. Also, the position is the body's local origin, not necessarily the center of mass.
Sorry about the thread resurrection but I've got a quick question regarding this.

Currently I am using this to draw my physics shapes:

Code:
glTranslatef(body->GetPosition().x,body->GetPosition().y,0);  //translate x and y
glRotatef(body->GetAngle()*180/b2_pi,0,0,1);  //convert to degrees and rotate about z-axis


Since glTranslatef and glRotatef are openGL shortcuts for matrix multiplication operations, would it be worth it for me to take apart the body's XForm and stick it into a 4x4 matrix for passing to glMultMatrixf()?
If you look at the Box2D code, you'll see that it transforms polygon vertices to world coordinates and then passes them to GL without any transforms.

See b2World::DrawShape.
Yes, I did notice that, but didn't want to re-write my draw functions.

Original thread: https://box2d.org/forum/viewtopic.php?t=687