SetAsBox logic

Hi,
If i define a body using and set its position as

groundBodyDef.position.Set(0.0f / 30.0 , 15000.0f/30.0); // where 30 is the ratio => 1 meter = 30 pixels

In pixels its position is ( 0, 500)

then i define a polygon shape and use setAsBox function like

groundBox.SetAsBox(360.0f/30.0, 90.0f/30.0);

My doubt is how the SetAsBox is laid out :
by declaring groundBox.SetAsBox(360.0f/30.0, 90.0f/30.0); // (12, 3)
it draws a box from the position ( 0, 500) pixels and the box size will be (24 width, 6 height) and its extent will be from ( 0,500)
In a way i want to know how is bsBodyDef's ( position.x, position.y) and B2PolygonShape's (.SetAsBox()) are related.

Like

b2BodyDef groundBodyDef;
groundBodyDef.position.Set(0.0f/30.0, 15000.0f/30.0);

and

// Define the ground box shape.
b2PolygonShape groundBox;

// The extents are the half-widths of the box.
groundBox.SetAsBox(9000.0f/30.0, 30.0f/30.0);

// Add the ground fixture to the ground body.
groundBody->CreateFixture(&groundBox, 0.0f);

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