Home Search

DriveWorks Pro 22

Send Feedback


This function rotates the start position around the pivot position by the given euler rotation, and returns the result as a pipe-bar delimited list.


VectorRotateAroundPoint([Start Position], [Rotation], [Pivot Point])


Start Position is a pipe-bar delimited list representing the start position vector (X|Y|Z).

Rotation is a pipe-bar delimited list representing the euler rotation vector (X|Y|Z).

Pivot Point is a pipe-bar delimited list representing the pivot point vector (X|Y|Z).

You can use X|Y to achieve any location in space. For example, if you wish to rotate about Z, simply rotate about X by 90, and then Y by your chosen angle.


VectorRotateAroundPoint("1|2|3","3|2|1","4|3|2")Will return the vector 1.09|1.84|3.09 (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.