<< Prev        Next >>

ID : 3952

PosZ

Function

To return Z component.

Syntax

PosZ(position data)

Guaranteed Entry

Position data
Designate position type data, homogeneous translation type data and vector type data that represent the position.

Return Value

Return the Z component by single precision real number type data.

Description

Z component is extracted from the data representing the position and returned by single precision real number type data. Position data that can be designated as argument are position type data, homogeneous translation type data and vector type data. Joint type data cannot be designated.

Related Terms

PosX, PosY, LetX, LetY, LetZ

Attention

-

Example

'!TITLE "Acquiring Z Component"
' Acquiring Z component of aaa
Sub Sample_PosZ

  Dim aaa As Single
  Dim bbb As Position
  Dim ccc As Position

  bbb = CurPos
  ccc = Dev( bbb, P( 0, 0, 10, 0, 0, 0, -1 ) )

  ' Assign Z component of ccc to aaa
  aaa = PosZ( ccc )

  ' Display Z component of aaa on the message output window
  PrintDbg aaa

End Sub

ID : 3952

<< Prev        Next >>