POSX
(Function)

Extracts the X-component.

POSX ({<Position type>|<Vector type>})

This statement extracts the X-component from position type or vector type coordinates.

DIM lf1 As Single
|
|
DIM lp1 As Position
|
|
lf1 = POSX(lp1)
|
'Assigns the X-component of lp1 to lf1.
|
6-axis
lf1 = POSX(lp1 + (100, 100, 100, 0, 0, 0) )
|
'Assigns the X-component of lp1 +
'(100, 100, 100, 0, 0, 0)to lf1.
|
4-axis
lf1 = POSX(lp1 + (100, 100, 100, 0) )
|
'Assigns the X-component of lp1 +
'(100, 100, 100, 0)to lf1.
|