# data.tensor.pos

Syntax

Vector Access

v = data.tensor.pos(tp<,i>)
data.tensor.pos(tp<,i>) = v

Get/set the tensor position.

Returns: v - tensor position vector or component v - tensor position vector or component tp - user tensor pointer i - optional vector component

Component Access

f = data.tensor.pos.x(tp)
data.tensor.pos.x(tp) = f

Get/set the $$x$$-component of the tensor position.

Returns: f - $$x$$-component of the tensor position vector f - $$x$$-component of the tensor position vector tp - user tensor pointer
f = data.tensor.pos.y(tp)
data.tensor.pos.y(tp) = f

Get/set the $$y$$-component of the tensor position.

Returns: f - $$y$$-component of the tensor position vector f - $$y$$-component of the tensor position vector tp - user tensor pointer
f = data.tensor.pos.z(tp) (3D only)
data.tensor.pos.z(tp) = f (3D only)

Get/set the $$z$$-component of the tensor position.

Returns: f - $$z$$-component of the tensor position vector f - $$z$$-component of the tensor position vector tp - user tensor pointer