block.pos

Syntax

Vector Access

v = block.pos(ind)

Get the block centroid position vector.

Returns:v - block position vector
Arguments: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
Arguments:ind - block index
f = block.pos.y(ind)

Get the \(y\)-coordinate of the block centroid.

Returns:f - \(y\)-coordinate of the block centroid
Arguments:ind - block index