# 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 v - vector position vector or component 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 f - $$x$$-component of the vector position vector 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 f - $$y$$-component of the vector position vector 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 f - $$z$$-component of the vector position vector vp - vector pointer