Skip to main content

DX/DY/DZ

DX (transformation value variable)
DY (transformation value variable)
DZ (transformation value variable)

Function

Returns the transformation values (X, Y, Z) of the position defined by the specified pose variable. 

Parameter

Transformation value variable

Specifies the name of the transformation value variable whose X, Y, or Z component is required. 

Explanation

These three functions each returns the X, Y, or Z component of the specified pose 

Example

//If the pose “start” has the transformation values of:
//X    Y    Z    O    A   T
//125, 250, -50, 135, 50, 75
x=DX(start) //DX function returns x = 125.00
y=DY(start) //DY function returns y = 250.00
Z=DZ(start) //DZ function returns z = 50.00
[NOTE] Each component of the transformation values can also be obtained using the DECOMPOSE instruction. The values for O, A, and T are obtained using the DECOMPOSE instruction.