Home Search

DriveWorks Pro 22
VectorMax

Send Feedback

VectorMax

This function creates a new vector using the higher value of each component of the two vectors, and returns the result as a pipe-bar delimited list.

Syntax

VectorMax([Vector 1], [Vector 2])

Where:

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

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

Examples

RuleResult
VectorMax("5|8","4|9")Will return the higher values from each co-ordinate given in the 2D vector, 5|9.
VectorMax("5|8|12","4|9|12")Will return the higher values from each co-ordinate given in the 3D vector, 5|9|12.
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.