<< Prev        Next >>

ID : 3923

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 : 3923

<< Prev        Next >>