block.zone.pos

Syntax

Vector Access

v/f = block.zone.pos(bzp<,i>)

Get the position of a zone centroid. If the optional argument i is supplied, the return value is restricted by vector component (1 = \(x\), 2 = \(y\), 3 = \(z\)).

Returns:

v or f - position or component of position

Arguments:

bzp - block zone pointer

i - optional vector component

Component Access

f = block.zone.pos.x(bzp)

Get the \(x\)-component of the zone centroid position.

Returns:f - \(x\)-component of zone centroid position
Arguments:bzp - block zone pointer
f = block.zone.pos.y(bzp)

Get the \(y\)-component of the zone centroid position.

Returns:f - \(y\)-component of zone centroid position
Arguments:bzp - block zone pointer
f = block.zone.pos.z(bzp)

Get the \(z\)-component of the zone centroid position.

Returns:f - \(z\)-component of zone centroid position
Arguments:bzp - block zone pointer