PVEC
(Function)

Extracts a position vector.

PVEC ({<Homogeneous transformation type>|<Position type>})

This statement extracts a position vector from homogeneous transformation type coordinates or from position type coordinates.

DIM lt1 As Trans
|
|
DIM lv1 As Vector
|
|
DIM lp1 As Position
|
|
lv1 = PVEC(lt1)
|
'Assigns the position vector of lt1 to lv1.
|
6-axis
lv1 = PVEC(lp1 + (100, 200, 0, 0, 0, 0) )
|
'Assigns the position vector of lp1 +
'(100, 200, 0, 0,0, 0) to lv1.
|
4-axis
lv1 = PVEC(lp1 + (100, 200, 0, 0) )
|
'Assigns the position vector of
'lp1+(100, 200, 0, 0) to lv1.
|