data.scalar.pos

Syntax

Vector Access

v = data.scalar.pos(sp<,i>)
data.scalar.pos(sp<,i>) = v

Get/set the scalar position.

Returns:

v - scalar position vector or component

Accepts:

v - scalar position vector or component

Arguments:

sp - user scalar pointer

i - optional vector component

Component Access

f = data.scalar.pos.x(sp)
data.scalar.pos.x(sp) = f

Get/set the x-component of the scalar position.

Returns:f - x-component of the scalar position vector
Accepts:f - x-component of the scalar position vector
Arguments:sp - user scalar pointer
f = data.scalar.pos.y(sp)
data.scalar.pos.y(sp) = f

Get/set the y-component of the scalar position.

Returns:f - y-component of the scalar position vector
Accepts:f - y-component of the scalar position vector
Arguments:sp - user scalar pointer
f = data.scalar.pos.z(sp) (3D only)
data.scalar.pos.z(sp) = f (3D only)

Get/set the z-component of the scalar position.

Returns:f - z-component of the scalar position vector
Accepts:f - z-component of the scalar position vector
Arguments:sp - user scalar pointer