VectorMagnitude(Array) Function

Top 

Description

Returns the magnitude of a vector. If the array has more than 3 elements, only the first 3 elements of the array are considered.

 

This function has been Deprecated. Please use Array.Norm() or Matrix.Norm() instead.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode.

 

Function Signature

VectorMagnitude(

Array vector)

 

 

Arguments

vector


Description:

A three-element vector.

Required Size:

At least 3

 

 

 

Return Value

Type:

number

 

 

Returns the magnitude of a vector. If the array has more than 3 elements, only the first 3 elements of the array are considered.

 

Syntax

myVariable1 = VectorMagnitude(myArray1);

 

 

Example 1

 

 

Example 2

 

 

See also

VectorMagnitude