# struct.pile.ydir

Syntax

## Vector Access

v = struct.pile.ydir(p<,i>) = v

Get the $$y$$-axis of the pile element local system. Returns a vector, unless an optional component argument i is supplied, in which case it returns the component value. On assignment will adjust the vector v to be normal to the element direction.

Returns: v - local system $$y$$-axis vector or component v - local system $$y$$-axis vector or component. p - a pile pointer i - optional vector component, from 1 to 3