interface.node.position

Syntax

Vector Access

v = interface.node.pos(in<,i>)
interface.node.pos(in<,i>) = v

Get/set the position vector for the interface node. Returns a vector, unless an optional component argument i is supplied, in which case it returns the component value.

Returns:

v - position vector or component

Accepts:

v - position vector or component

Arguments:

in - interface node pointer

i - optional vector component, from 1 to 3

Component Access

f = interface.node.pos.x(in)
interface.node.pos.x(in) = f

Get/set the x-component position vector of the interface node.

Returns:f - x-component position vector
Accepts:f - x-component position vector
Arguments:in - interface node pointer
f = interface.node.pos.y(in)
interface.node.pos.y(in) = f

Get/set the y-component position vector of the interface node.

Returns:f - y-component position vector
Accepts:f - y-component position vector
Arguments:in - interface node pointer
f = interface.node.pos.z(in)
interface.node.pos.z(in) = f

Get/set the z-component position vector of the interface node.

Returns:f - z-component position vector
Accepts:f - z-component position vector
Arguments:in - interface node pointer