ID : 340
LetO
Function
To assign a vector value to the orient vector of Homogeneous Translation Type variable.
Syntax
LetO homogeneous translation type variable = vector
Guaranteed Entry
- Homogeneous translation type variable
- Designate Homogeneous Translation Type variable.
- Vector
- Designate Vector Type data.
Description
Vector Type data specified in vector are assigned to the 4th through 6th elements (Ox, Oy, Oz) of the designated Homogeneous Translation Type variable (T variable).
Tvar = t(X, Y, Z, Ox, Oy, Oz, Ax, Ay, Az, Fig)
Vvar = v(Xv, Yv, Zv)
LetO Tvar = Vvar
'Tvar : t(X, Y, Z, Xv, Yv, Zv, Ax, Ay, Az, Fig)
Attention
It is not judged whether the assigned variable is a value that can be taken as robot's position.
Example
'!TITLE "Assignment to Homogeneous Translation Type Orient Vector"
' Assign the orient vector in the current position to bbb
Sub Sample_LetO
Dim aaa As Trans
Dim bbb As Trans
aaa = CurTrn
' Assign the orient vector in aaa to bbb
LetO bbb = OVec( aaa )
' Display the orient vector in the current position on the message output window
PrintDbg bbb
End Sub
ID : 340