data.vector.pos

Syntax

Vector Access

v = data.vector.pos(vp<,i>)
data.vector.pos(vp<,i>) = v

Get/set the vector position.

Returns:

v - vector position vector or component

Accepts:

v - vector position vector or component

Arguments:

vp - vector pointer

i - optional vector component

Component Access

f = data.vector.pos.x(vp)
data.vector.pos.x(vp) = f

Get/set the \(x\)-component of the vector position.

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

Get/set the \(y\)-component of the vector position.

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

Get/set the \(z\)-component of the vector position.

Returns:f - \(z\)-component of the vector position vector
Accepts:f - \(z\)-component of the vector position vector
Arguments:vp - vector pointer