DiffPoint Function

Returns the difference between two specified points.

Syntax
DiffPoint (pointData1, pointData2)

Parameters

pointData1
Specify the first point data.
pointData2
Specify the second point data.

Return Values
Returns the position and orientation of pointData2 as seen from pointData1.

Description
Returns the position and orientation of pointData2 in a coordinate system with pointData1 as the origin. This function uses default values as returned the local number of the point data, and flag information such as Hand.

If point data is left undefined for either point data, the undefined values will be calculated as “0”.

For example, if pointData1 is specified as “XY (10,0,0,0,0,0): ST (10, 10)”, and pointData2 is specified as “XY (10,0,0,0,0,0)”, the S and T values are undefined for pointData2 while the values are defined for pointData1, and thus the values calculated with the S and T values for pointData2 as “0” will be returned.

Notes


  • About the Controllers to use

    It cannot be used with T/VT series.


DiffPoint Function Example

'Display the position and orientation of P2 as seen from P1.

Print DiffPoint(P1, P2)

'Display the position and orientation of P1 as seen from the current position (Here).

Print DiffPoint(Here, P1)