
15-26
PVEC (Function)
Function
Extracts a position vector.
Format
PVEC ({<Homogeneous transformation type>|<Position type>})
Explanation
This statement extracts a position vector from homogeneous transformation
type coordinates or from position type coordinates.
Related Terms
AVEC, OVEC, RVEC
Example
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.
Komentáře k této Příručce