Overview | Statement List | Example


一个向量的长度(大小)

Synopsis

VLENF(A)

Description

Returns the length (magnitude) of a vector.

Using the function as shown below, where A is an array consisting of the three components of a vector,

D=VLENF(A)

is equivalent to the following expression:

D=SQRTF(A(1)*A(1)+A(2)*A(2)+A(3)*A(3))

Parameters

Parameter

Description

A

A three-position numerical array which represents the components of a vector.


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.