<< Prev        Next >>

ID : 351

LetZ

Function

To assign a value to Z-axis component of the Vector Type variable, Position Type variable, or Homogeneous Translation Type variable.

Syntax

LetZ position variable = formula

Guaranteed Entry

Position variable
Designate the Vector Type variable, Position Type variable, or Homogeneous Translation Type variable variable name.
Formula
Designate Single Precision Real Number Type data.

Description

A value specified in formula are assigned to the 3rd element (Z) of the designated position variable.

For position variable, Vector Type variable, Position Type variable or Homogeneous Translation Type variable can be specified.

Vvar = v(X, Y, Z)
Pvar = p(X, Y, Z, Rx, Ry, Rz, Fig)
Tvar = t(X, Y, Z, Ox, Oy, Oz, Ax, Ay, Az, Fig)

LetZ Vvar = Ivar
'Vvar : v(X, Y, Ivar)

LetZ Pvar = Ivar
'Pvar : p(X, Y, Ivar, Rx, Ry, Rz, Fig)

LetZ Tvar = Ivar
'Tvar : t(X, Y, Ivar, Ox, Oy, Oz, Ax, Ay, Az, Fig)

Related Terms

Let, LetP, LetX, LetY, LetR, 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 of Vector Type, Position Type or Homogeneous Translation Type to Z-axis 
Component" ' Assign Z-axis component in the position type current position Sub Sample_LetZ Dim aaa As Position Dim bbb As Position aaa = CurPos ' Assign Z-axis component of aaa to Z-axis component of bbb LetZ bbb = PosZ( aaa ) ' Display Z-axis component of position type on the message output window PrintDbg bbb End Sub

ID : 351

<< Prev        Next >>