<< Prev        Next >>

ID : 339

LetA

Function

To assign a vector value to the approach vector of Homogeneous Translation Type variable.

Syntax

LetA 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 7th through 9th elements (Ax, Ay, Az) 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)
LetA Tvar = Vvar
'Tvar : t(X, Y, Z, Ox, Oy, Oz, Xv, Yv, Zv, Fig)   

Related Terms

Let, LetP, LetX, LetY, LetZ, LetR, LetRx, LetRy, LetRz, LetO, LetF, LetJ

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 Approach Vector"
' Assign the approach vector in the current position to bbb
Sub Sample_LetA

  Dim aaa As Trans
  Dim bbb As Trans

  aaa = CurTrn

  ' Assign the approach vector in aaa to bbb
  LetA bbb = AVec( aaa )

  ' Display the approach vector in the current position on the message output window
  PrintDbg bbb

End Sub

ID : 339

<< Prev        Next >>