<< Prev        Next >>

ID : 248

PVec

Function

To return the position vector.

Syntax

PVec(position data)

Guaranteed entry

Position data
Designate homogeneous translation type data or position type data.

Return value

Return vector type data.

Description

The position components (x, y, z) are extracted from homogeneous translation type data or position type data as vector type data.

ReturnValue = PVec( T(X, Y, Z, Ox, Oy, Oz, Ax, Ay, Az, Fig))
'ReturnValue : V(X, Y, Z)

Related Terms

Fig, RVec

Attention

-

Example

'!TITLE "Acquiring Position Vector"
' Acquisition of position vector in the current position
Sub Sample_PVec

  Dim aaa As Trans
  Dim bbb As Vector

  aaa = CurTrn

  ' Assign position vector in the current position to bbb
  bbb = PVec( aaa )

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

End Sub

ID : 248

<< Prev        Next >>