<< Prev        Next >>

ID : 263

PosX

Function

To return X component.

Syntax

PosX(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 X component by single precision real number type data.

Description

X 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

PosY, PosZ, LetX, LetY, LetZ

Attention

-

Example

'!TITLE "Acquiring X Component"
' Acquiring X component of aaa
Sub Sample_PosX

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

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

  ' Assign X component of ccc to aaa
  aaa = PosX( ccc )

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

End Sub

ID : 263

<< Prev        Next >>