# block.pos

Syntax

## Vector Access

v = block.pos(ind)

Get the block centroid position vector.

Returns: v - block position vector ind - block index

## Component Access

f = block.pos.x(ind)

Get the $$x$$-coordinate of the block centroid.

Returns: f - $$x$$-coordinate of the block centroid ind - block index
f = block.pos.y(ind)

Get the $$y$$-coordinate of the block centroid.

Returns: f - $$y$$-coordinate of the block centroid ind - block index