Home Search

DriveWorks Pro 21
VectorLength

Send Feedback

VectorLength

This function calculates the length of the vector.

Syntax

VectorLength([Vector])

Where:

Vector is a pipe-bar delimited list representing the first vector (X|Y|Z).

Examples

RuleResult
VectorLength("5|10|15")Will return the length of the given vector, 18.70 (values have been rounded for clarity).
Floating Point Precision

Due to floating point precision, some calculations may not be as precise as expected.

This can be avoided by following the advice in the topic Info: Floating Point Precision.


Please see How To: Understanding Vector Functions for more information on Vectors, all the Vector functions provided in DriveWorks and use case examples.