Chapter 15 Functions
15-27
MAGNITUDE (Function)
Function
Obtains the vector size.
Format
MAGNITUDE (<Vector type>)
Explanation
This statement obtains the vector size of a vector type coordinate value.
Related Terms
DIST
Example
DEFSNG lf1, lf2
DIM lv1 As Vector
lf1 = MAGNITUDE((10, 10, 10))
'Assigns the size of vector (10, 10, 10) to lf1
.
lf2 = MAGNITUDE(lv1) 'Assigns the size of vector lv1 to lf2.
Comments to this Manuals