<< Prev        Next >>

ID : 249

Magnitude

Function

To return the vector size.

Syntax

Magnitude(vector)

Guaranteed entry

Vector
Designate the vector to obtain size by vector type data.

Return value

Return double precision real number type data.

Description

The vector size is returned.

Related Terms

Dist

Attention

-

Example

'!TITLE "' Acquisition of Vector Size"
' Acquisition of the vector size in the current position
Sub Sample_Magnitude

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

  bbb = CurPos

  ' Acquiring position vector in the current position
  ccc = PVec( bbb )

  ' Assign the vector size in the current position to aaa
  aaa = Magnitude( ccc )

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

End Sub

ID : 249

<< Prev        Next >>