<< Prev        Next >>

ID : 344

LetR

Function

To assign a value of Vector Type data to rotation elements (Rx, Ry, Rz) of the Position Type variable.

Syntax

LetR position type variable = vector

Guaranteed entry

Position type variable
Designate the Position Type variable name.
Vector
Designate Vector Type data.

Description

Vector Type data specified in vector are assigned to the 4th through 6th elements (Rx, Ry, Rz) of the designated position variable.

Pvar = p(X, Y, Z, Rx, Ry, Rz, Fig)
Vvar = v(Xv, Yv, Zv)

LetR Pvar = Vvar
'Pvar : p(X, Y, Z, Xv, Yv, Zv, Fig)

Related Terms

Let, LetP, LetX, LetY, LetZ, LetRx, LetRy, LetRz, LetO, LetA, 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 3 Rotation Components of Position Type"
' Assign rotation components in the current position to bbb
Sub Sample_LetR

  Dim aaa As Position
  Dim bbb As Position

  aaa = CurPos

  ' Assign rotation components in the current position to bbb
  LetR bbb = RVec( aaa )

  ' Output rotation components in the current position on the message output window
  PrintDbg bbb

End Sub

ID : 344

<< Prev        Next >>