What's New in Director 8.5 > Controlling the 3D World > Vector math > Vector commands |
![]() ![]() ![]() |
Vector commands
Use these commands to work with vectors:
Command |
Description |
Returns |
---|---|---|
|
Normalizes the vector by modifying it into a unit vector of length 1. This is done by dividing each component of the vector by the vector's original length. That original length is the square root of the sum of the squares of each component. |
Nothing. Vector is modified. |
|
Returns a normalized version of the vector. |
A new vector object. |
|
Returns the dot (inner) product of the first vector and the second vector ( |
Dot product of the two vectors. |
|
Returns the angle between |
Value of the angle in degrees. |
|
Returns a vector perpendicular to the original vector and to |
A new vector object. |
|
Returns the distance between |
Floating-point value of distance. |
|
A copy of the vector. |
A new vector object. |
![]() ![]() ![]() |