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

Accepts:

v - tensor position vector or component

Arguments:

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
Accepts:f - x-component of the tensor position vector
Arguments: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
Accepts:f - y-component of the tensor position vector
Arguments: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
Accepts:f - z-component of the tensor position vector
Arguments:tp - user tensor pointer